It is important that this script does NOT prompt the user for each run as this will break diff.sh. It might have been good if another script allowed this but issue 3 is drawing to a close (as we all want) and it's not that big of a deal anyway.
38 lines
815 B
Bash
Executable File
38 lines
815 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# try.sh - demonstrate IOCCC entry 2013/dlowe
|
|
#
|
|
|
|
# make sure CC is set so that when we do make CC="$CC" it isn't empty. Doing it
|
|
# this way allows us to have the user specify a different compiler in an easy
|
|
# way.
|
|
if [[ -z "$CC" ]]; then
|
|
CC="cc"
|
|
fi
|
|
|
|
make CC="$CC" all >/dev/null || exit 1
|
|
|
|
# clear screen after compilation so that only the entry is shown
|
|
clear
|
|
|
|
# NOTE: do NOT change this to prompt the user for each command as this will
|
|
# break the script diff.sh.
|
|
#
|
|
echo "$ ./dlowe 0 1 2 3 4 5 6 7"
|
|
./dlowe 0 1 2 3 4 5 6 7
|
|
echo
|
|
echo "$ ./dlowe 16 32 64 128"
|
|
./dlowe 16 32 64 128
|
|
echo
|
|
echo "$ ./dlowe 16 32 64 128 256"
|
|
./dlowe 16 32 64 128 256
|
|
echo
|
|
echo "$ ./dlowe 16 32 64 128 256 512"
|
|
./dlowe 16 32 64 128 256 512
|
|
echo
|
|
echo "$ ./dlowe 0"
|
|
./dlowe 0
|
|
echo
|
|
echo "$ ./slflen.sh"
|
|
./slflen.sh
|