Merge pull request #1109 from xexyl/1988-westley-demo-improvement

Improve 1988/westley/demo.sh
This commit is contained in:
Landon Curt Noll authored and GitHub committed 2023-10-18 15:30:18 -07:00
commit 1dd5595e7f
1 file changed
+6 -6
+6 -6
View File
@@ -1,15 +1,15 @@
#!/usr/bin/env bash #!/usr/bin/env bash
clear clear
if [[ ! -x "westley" ]]; then
echo "$ cc westley.c -o westley"
cc -std=gnu89 -Wno-error -Wno-implicit-function-declaration -Wno-return-type -O3 westley.c -o westley || exit 1
fi
echo "$ cat westley.c" echo "$ cat westley.c"
cat westley.c cat westley.c
sleep 1 sleep 1
echo "$ cc westley.c -o westley"
cc -std=gnu89 -Wno-error -Wno-implicit-function-declaration -Wno-return-type -O3 westley.c -o westley || exit 1
echo "$ ./westley" echo "$ ./westley"
./westley ./westley
echo