forked from eranif/codelite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake-weekly
executable file
·41 lines (36 loc) · 1.05 KB
/
make-weekly
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
cd build-release
curdir=`pwd`
builddir=`basename ${curdir}`
if [ ${builddir} != "build-release" ]; then
echo "You must run this script from CodeLite root folder"
exit -1
fi
# Clear old installers
os_name=`uname -s`
if [ ${os_name} == "Darwin" ]; then
echo rm -f codelite.app.tar.gz
rm -f codelite.app.tar.gz
else
echo rm -fr *.deb
rm -fr *.deb
fi
# Update our source tree
git pull --rebase
if [ $? -ne 0 ]; then
exit $?
fi
cd ../wxcrafter && git pull --rebase && cd ../build-release
# Build and upload
if [ ${os_name} == "Darwin" ]; then
cmake -DCMAKE_BUILD_TYPE=Release .. -DWITH_PCH=1
make -j4 && make install
tar cvfz codelite.app.tar.gz codelite.app/*
scp codelite.app.tar.gz root@codelite.org:/var/www/downloads/codelite/weekly/wip
else
cmake -DCMAKE_BUILD_TYPE=Release -DMAKE_DEB=1 -DCOPY_WX_LIBS=1 ..
make -j4 && make package
deb_file=`ls -lt *.deb|awk '{print $9;}'|head -n 1`
echo Uploading deb file ${deb_file}
scp ${deb_file} root@codelite.org:/var/www/downloads/codelite/weekly/wip
fi