Skip to content

Commit 63165e8

Browse files
MissLavender-LQMissLavender-LQ
authored andcommitted
linux build scripts
1 parent ac1b1e7 commit 63165e8

File tree

2 files changed

+65
-2
lines changed

2 files changed

+65
-2
lines changed
File renamed without changes.

build.sh

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,66 @@
11
#!/bin/bash
2-
premake5 gmake;
3-
make config=release all;
2+
function -r {
3+
premake5 gmake;
4+
make config=release all;
5+
}
6+
7+
function -d {
8+
premake5 gmake;
9+
make config=debug all;
10+
}
11+
12+
function -a {
13+
bash .build_assets.sh;
14+
}
15+
16+
function -c {
17+
make clean;
18+
echo -e "=====Cleaning done=====";
19+
}
20+
21+
22+
function -h {
23+
echo -e "
24+
==========================================================================
25+
run ./build.sh -r to compile for release
26+
run ./build.sh -d to compile for debug
27+
run ./build.sh -c to run make clean (start fresh)
28+
run ./build.sh -h to read this msg :3
29+
==========================================================================
30+
";
31+
}
32+
33+
34+
### command list ###
35+
case $1 in
36+
-r)
37+
-r
38+
;;
39+
40+
-d)
41+
-d
42+
;;
43+
44+
-a)
45+
-a
46+
;;
47+
48+
-c)
49+
-c
50+
;;
51+
52+
-h)
53+
-h
54+
;;
55+
56+
*)
57+
echo -e "
58+
==========================================================================
59+
run ./build.sh -r to compile for release
60+
run ./build.sh -d to compile for debug
61+
run ./build.sh -c to run make clean (start fresh)
62+
run ./build.sh -h to read this msg :3
63+
==========================================================================
64+
"
65+
66+
esac

0 commit comments

Comments
 (0)