-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCompiler.sh
executable file
·43 lines (41 loc) · 1.64 KB
/
Compiler.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
set -e
if [[ "$1" == "--help" ]]; then
echo " ╭───────────────────────────╮"
sleep 0.05
echo " │ Secton Temp compiler help │"
sleep 0.1
echo " │ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ │"
sleep 0.15
echo " │ --help: display this help │"
sleep 0.2
echo " │ noClear: disable clearing │"
sleep 0.25
echo " │ run: compile, then run it │"
sleep 0.3
echo " ╰───────────────────────────╯"
sleep 0.35
echo " Secton, 2025. Enjoy coding!"
else
if [[ "$1" != "noClear" ]]; then
clear
fi
if [[ "$1" == "--" ]]; then
echo " ██████▓█▓▓▓▓▓▓▒▓▒▒▒▒▒▒░▒░░░░░░"
echo " ██ Compiling with custom args: $2 $3 $4 $5 $6 $7 $8 $9"
echo " ██████▓█▓▓▓▓▓▓▒▓▒▒▒▒▒▒░▒░░░░░░"
fi
echo -e "\033[1;34mSecton's temp compiler script"
echo " ╭──────────────────────╮"
echo " │ Compiling sources... │ 🏗"
echo -e " ╰──────────────────────╯\033[0m"
clang++ ./Source/*.C++ ./Source/Initialize.C++ -O3 -o ./LRAD.elf $2 $3 $4 $5 $6 $7 $8 $9
chmod +x ./Build/LRAD.elf
if [[ "$1" == "run" ]]; then
echo -e "\033[1;34m"
echo " ╭──────────────────────╮"
echo " │ Running... │ 🧰"
echo -e " ╰──────────────────────╯\033[0m"
cd Build
./LRAD.elf
fi
fi