Add 2005/timwi/try.sh + format/typo checks
It only has one command. This is because I don't want to knacker my brain and I don't want to damage anyone else's brain either. Format/typo check README.md.
This commit is contained in:
1 parent
0e5422c707
commit
0f33a6784a
3 files changed
+39
-6
No files matched your search
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# try.sh - demonstrate IOCCC winner 2005/timwi
|
||||
#
|
||||
# This only does one thing and that is from the judges. This is because
|
||||
# brainfuck has too much potential to knacker the brain.
|
||||
#
|
||||
|
||||
# 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
|
||||
|
||||
echo "$ (echo \"20 : ,-->+.>+.<<[>[>>+>+<<<-]>[>>+>+<<<-]>"; \
|
||||
echo "[<+>-]>[<<<+>>>-]>[-]<<<<.<-]\") | ./timwi" 1>&2
|
||||
|
||||
(echo "20 : ,-->+.>+.<<[>[>>+>+<<<-]>[>>+>+<<<-]>"; echo "[<+>-]>[<<<+>>>-]>[-]<<<<.<-]") | ./timwi
|
||||
echo 1>&2
|
||||
echo "Now please go take better care of your brain. You only get one." 1>&2
|
||||
Reference in new issue
Block a user