forked from dmzgroup/scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pull_clean_build_publish_mac.sh
executable file
·63 lines (55 loc) · 1.28 KB
/
pull_clean_build_publish_mac.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
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/sh
# Options
# ./pull_clean_build_publish_mac.sh [-s] [-m]
# no arguments will just pull latest code
# -s will build and publish stance
# -m will build and publish mindmap
git pull http://www.github.com/dmzdev/scripts
cd ../dmz
git pull http://www.github.com/dmzdev/dmz
cd ../forge
git pull http://www.github.com/dmzdev/forge
cd ../js
git pull http://www.github.com/dmzdev/js
cd ../lmk
git pull http://www.github.com/dmzdev/lmk
cd ../mindmap
git pull http://www.github.com/dmzdev/mindmap
cd ../qmapcontrol
git pull http://www.github.com/dmzdev/qmapcontrol
cd ../stance
git pull http://www.github.com/dmzdev/stance
BUILDSTANCE=false
BUILDMINDMAP=false
CLEAN=false
echo "Pulling from github complete."
while getopts ":sm" opt; do
case $opt in
s)
echo "Building and publishing STANCE."
BUILDSTANCE=true
CLEAN=true
;;
m)
echo "Building and publishing MINDMAP."
BUILDMINDMAP=true
CLEAN=true
;;
\?)
echo "Not building or publishing anything."
;;
esac
done
if $CLEAN; then
echo "Running distclean"
lmk -f distclean
fi
if $BUILDSTANCE; then
echo "Building STANCE"
../stance/installer/pull_build_publish_mac.sh
fi
if $BUILDMINDMAP; then
echo "Building Mindmap"
../mindmap/installer/pull_build_publish_mac.sh
fi
echo "DONE!"