diff --git a/1988/westley/demo.sh b/1988/westley/demo.sh index b14f9975e..ef88b6f4b 100755 --- a/1988/westley/demo.sh +++ b/1988/westley/demo.sh @@ -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