Merge pull request #1109 from xexyl/1988-westley-demo-improvement
Improve 1988/westley/demo.sh
This commit is contained in:
1 file changed
+6
-6
@@ -1,15 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
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"
|
||||
cat westley.c
|
||||
|
||||
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"
|
||||
./westley
|
||||
|
||||
echo
|
||||
Reference in new issue
Block a user