-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·41 lines (33 loc) · 871 Bytes
/
build.sh
File metadata and controls
executable file
·41 lines (33 loc) · 871 Bytes
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
set -e
run=false
while [[ $# -gt 1 ]]; do
case $1 in
-help|-h)
echo "start.sh help:"
echo "start.sh [args] /path/to/root/directory/of/game/repo/"
echo "-clean / -c: Remove the existing 'out' directory before building"
echo "-run / -r: Run immediately after building"
echo "-help / -h: Display this message"
shift
;;
-clean|-c)
echo "Building clean"
rm -rf out
shift
;;
-run|-r)
run=true
shift
;;
esac
done
echo "Making destination 'out' directory."
mkdir out
echo "Using existing platform as base"
cp -r ./flask out
echo "Copying game files from within $1/flask"
cp -rf $1/flask/ ./out/flask/
if [ $run ]; then
cd ./out/flask/
./start.sh
fi