-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sh
executable file
·40 lines (29 loc) · 1.04 KB
/
build.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
#!/bin/bash
# (c) Andrey Streltsov <[email protected]>
# (c) ANSE 18 May 2015
if [ ! -z $1 ] && [ $1 == "clean" ]; then
echo "Cleaning up existing installation"
bash build_dependency.sh libsearpc clean $2
bash build_dependency.sh ccnet clean $2
bash build_dependency.sh seafile clean $2
bash build_client.sh clean $2
bash deploy.sh clean $2
exit 0
fi
echo "Prepearing for building dependency libraries"
echo "Setting up environement.."
unset `env | \
grep -vi '^EDITOR=\|^HOME=\|^LANG=\|MXE\|^PATH=' | \
grep -vi 'PKG_CONFIG\|PROXY\|^PS1=\|^TERM=' | \
cut -d '=' -f1 | tr '\n' ' '`
export MXE_PATH=/opt/mxe
export PREFIX=$MXE_PATH/usr/i686-w64-mingw32.shared
export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
export PKG_CONFIG_PATH_i686_w64_mingw32_shared=$PREFIX/lib/pkgconfig/
export PATH=$MXE_PATH/usr/bin:$PREFIX/bin:$PATH
export PKG_CONFIG_BIN_i686_w64_mingw32_shared=i686-w64-mingw32.shared-pkg-config
bash build_dependency.sh libsearpc
bash build_dependency.sh ccnet
bash build_dependency.sh seafile
bash build_client.sh
bash deploy.sh