-
Notifications
You must be signed in to change notification settings - Fork 7
/
doitall
executable file
·33 lines (33 loc) · 900 Bytes
/
doitall
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
#!/bin/bash
set -e
#----------------------------------------------------------------------#
if [ ${#} = 1 ]; then
if [ "$1" = "i386" ]; then
ARCH="i386"
else
if [ "$1" = "amd64" ]; then
ARCH="amd64"
else
echo ERROR $0 param must be i386, or amd64
exit
fi
fi
else
echo ERROR $0 param must be i386, or amd64
exit
fi
#----------------------------------------------------------------------#
export CLOONIX_TREE_ROOT=`pwd`
if [ ! -e ${CLOONIX_TREE_ROOT}/cloonix/cloonix_config ]; then
echo NOT FOUND:
echo ${CLOONIX_TREE_ROOT}/cloonix/cloonix_config
exit 1
fi
VERSION=$(cat ${CLOONIX_TREE_ROOT}/cloonix/cloonix_config | grep CLOONIX_VERSION)
VERSION=${VERSION#*=}
./allclean
./build_tools/build_client
./build_tools/build_server ${ARCH}
./build_tools/pack_common_before ${ARCH}
./build_tools/pack_server ${ARCH}
./build_tools/pack_common_after ${ARCH}