-
Notifications
You must be signed in to change notification settings - Fork 2
/
generate.sh
executable file
·49 lines (46 loc) · 1.46 KB
/
generate.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
clear
mkdir -p build
cd build
if [ $# -eq 0 ]
then
# tput setaf 2; echo "[+] Building project..."
echo "[+] Building project..."
# echo "\033[1;32m[+] Building project..."
# tput sgr0
sleep 1
# echo "\033[0m"
clear
gcc ../src/*.c -o conure -w && ./conure
exit 0
fi
case "$1" in
"-w")
# tput setaf 2; echo "[+] Building project..."
echo "[+] Building project..."
# echo "\033[1;32m[+] Building project..."
# tput sgr0
sleep 1
# echo "\033[0m"
clear
gcc ../src/*.c -o conure -Wall && echo "---------------------------------------" && ./conure
;;
"--warn")
# tput setaf 2; echo "[+] Building project..."
echo "[+] Building project..."
# echo "\033[1;32m[+] Building project..."
# tput sgr0
sleep 1
# echo "\033[0m"
clear
gcc ../src/*.c -o conure -Wall && echo "---------------------------------------" && ./conure
;;
*)
# tput setaf 1; echo "[-] Unknown argument(s)"
echo "[-] Unknown argument(s)"
exit 1
# echo "\033[1;31m[-] Unknown argument(s)"
# echo "\033[0m"
# echo "\033[0m"
# tput sgr0
;;
esac