-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ivan Beloborodov
committed
Oct 5, 2021
1 parent
a74bf75
commit 21286ae
Showing
3 changed files
with
26 additions
and
2 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 @@ | ||
#!/bin/bash | ||
if [ $# -eq 0 ]; then | ||
echo -e "Needs one parameter: the path to the directory where apertium packages should be installed "; | ||
exit 1; | ||
fi; | ||
if ! [ -d "$1" ]; then | ||
echo -e "Passed parameter is not a valid path. "; | ||
exit 1; | ||
fi; | ||
locale-gen en_US.UTF-8 && update-locale; | ||
apt install -y lttoolbox apertium-dev \ | ||
apertium-lex-tools hfst libhfst-dev cg3 cg3-dev autoconf; | ||
if ! [ -d "$1/apertium-kaz" ]; then git clone https://github.com/apertium/apertium-kaz $1/apertium-kaz; fi; | ||
cd $1/apertium-kaz && ./autogen.sh && ./configure && make && make install; | ||
if ! [ -d "$1/apertium-tat" ]; then git clone https://github.com/apertium/apertium-tat $1/apertium-tat; fi; | ||
cd $1/apertium-tat && ./autogen.sh && ./configure && make && make install; | ||
if ! [ -d "$1/apertium-rus" ]; then git clone https://github.com/apertium/apertium-rus $1/apertium-rus; fi; | ||
cd $1/apertium-rus && ./autogen.sh && ./configure && make && make install; | ||
if ! [ -d "$1/apertium-kaz-rus" ]; then git clone https://github.com/apertium/apertium-kaz-rus $1/apertium-kaz-rus; fi; | ||
cd $1/apertium-kaz-rus && ./autogen.sh && ./configure && make && make install; | ||
if ! [ -d "$1/apertium-tat-rus" ]; then git clone https://github.com/apertium/apertium-tat-rus $1/apertium-tat-rus; fi; | ||
cd $1/apertium-tat-rus && ./autogen.sh && ./configure && make && 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