-
Notifications
You must be signed in to change notification settings - Fork 0
/
circular.bash
34 lines (31 loc) · 1.12 KB
/
circular.bash
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
#!/bin/bash
rm working/quon1
ln working/quon working/quon1
rm working/quon1.exe
cp working/quon.exe working/quon1.exe
echo Preparing quon1.c
./working/quon1 compiler.qon > working/quon1.c
#./working/quon1 compiler.qon --node > working/quon1.js
rm working/quon2
rm working/quon2.exe
echo Compiling quon1.c into quon2
gcc -O3 -Wl,-stack_size,4000000 -Wno-format-security working/quon1.c -o working/quon2 -Wno-unknown-escape-sequence -Wno-parentheses-equality
echo Testing quon2
./working/quon2 --test
#node ./working/quon2.js --test
#./working/quon_new compiler.qon
echo Preparing quon1.c using quon2
./working/quon2 compiler.qon > working/quon2.c
#node ./working/quon2 compiler.qon --node > working/quon2.js
#echo Comparing quon1.c and quon2.c
#diff quon1.c quon2.c
echo Removing quon1
rm working/quon1
rm working/quon1.exe
echo Compiling quon1.c into quon1
gcc -O3 -Wl,-stack_size,4000000 -Wno-format-security working/quon2.c -o working/quon1 -Wno-unknown-escape-sequence -Wno-parentheses-equality
echo Testing quon1
./working/quon1 --test
#node ./working/quon1.js --test
#bash circular.bash
echo working/quon1 updated to latest version