-
Notifications
You must be signed in to change notification settings - Fork 135
/
build.sh
37 lines (35 loc) · 892 Bytes
/
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
#! /bin/bash
PARAM=''
PKGFILE='packages_v2_5_4878_35266.tar.gz'
PKGDIR='packages'
URL='http://apworks.org/wp-content/uploads/fx/'
if [ "$1" == 'Debug' ]
then
PARAM='/property:Configuration=MonoDebug'
elif [ "$1" == 'Release' ]
then
PARAM='/property:Configuration=MonoRelease'
else
printf "\n"
printf "Apworks Command-Line Build Tool v1.0\n\n"
printf "Usage:\n"
printf " build.sh Debug\n"
printf " Builds the Apworks with Debug configuration.\n\n"
printf " build.sh Release\n"
printf " Builds the Apworks with Release configuration.\n\n"
exit $?
fi
if [ ! -d $PKGDIR ]
then
printf "\nDownloading Dependencies...\n\n"
rm -rf $PKGFILE
wget $URL$PKGFILE
if [ $? -ne 0 ]
then
printf "Failed to get the Dependencies from network.\n"
exit $?
fi
tar -zxvf $PKGFILE
rm -rf $PKGFILE
fi
xbuild $PARAM