-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #405 from Inist-CNRS/chore/update-libpostal
Update libpostal
- Loading branch information
Showing
15 changed files
with
1,594 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
## Script base of the libpostal github action | ||
## https://github.com/openvenues/node-postal/blob/master/.github/workflows/push.yml | ||
|
||
# Install required dependencies to build libpostal | ||
sudo apt-get update | ||
sudo apt-get install build-essential curl autoconf automake libtool pkg-config | ||
|
||
# Create working directory | ||
sudo mkdir -p /code /data /deps | ||
sudo chown "$USER":"$USER" /code /data /deps | ||
|
||
# Install lib postal | ||
cd /code || exit | ||
git clone https://github.com/openvenues/libpostal | ||
cd libpostal || exit | ||
git reset --hard 8f2066b ## Reset to a fixed commit https://github.com/openvenues/libpostal/commit/8f2066b1d30f4290adf59cacc429980f139b8545 | ||
./bootstrap.sh | ||
./configure --datadir=/data --prefix=/deps --bindir=/deps || cat config.log | ||
make -j4 | ||
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.