-
Notifications
You must be signed in to change notification settings - Fork 3
/
win32-combine.sh
executable file
·48 lines (42 loc) · 1.18 KB
/
win32-combine.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
set -e
. win32-funcs.sh
# Apertium all-dev
rm -rf /opt/win32
install_dep transfuse
install_dep foma
install_dep openfst
install_dep lttoolbox
install_dep apertium
install_dep apertium-lex-tools
install_dep apertium-separable
install_dep apertium-recursive
install_dep apertium-anaphora
install_dep hfst
install_dep hfst-ospell
install_dep lexd
#install_dep cg3ide
install_dep cg3
#install_dep trie-tools
cd /opt
rm -rf apertium-all-dev
mv win32 apertium-all-dev
chmod -R uga+r apertium-all-dev
zip -9r apertium-all-dev.zip apertium-all-dev
7za a -l apertium-all-dev.7z apertium-all-dev
mv -fv apertium-all-dev.zip ~apertium/public_html/$AUTOPKG_WINX/$AUTOPKG_BUILDTYPE/
mv -fv apertium-all-dev.7z ~apertium/public_html/$AUTOPKG_WINX/$AUTOPKG_BUILDTYPE/
rm -rf apertium-all-dev
# CG-3 IDE
rm -rf /opt/win32
install_dep cg3ide
install_dep cg3
cd /opt
rm -rf cg3ide
mv win32 cg3ide
zip -9r cg3ide.zip cg3ide
7za a -l cg3ide.7z cg3ide
mv -fv cg3ide.zip ~apertium/public_html/$AUTOPKG_WINX/$AUTOPKG_BUILDTYPE/cg3ide-[0-9]*.zip
mv -fv cg3ide.7z ~apertium/public_html/$AUTOPKG_WINX/$AUTOPKG_BUILDTYPE/cg3ide-[0-9]*.7z
rm -rf cg3ide
chown -R apertium:apertium ~apertium/public_html/$AUTOPKG_WINX