Add try.sh/try.alt.sh template scripts
The scripts can be found under template/entry. A new FAQ entry has been
added and the guidelines have been updated.
The rules have a new div id ("version") to match what was added to
guidelines yesterday (since it's obvious what kind of version it is.
Once this has been merged html files need to be checked to make sure
everything is okay.
This commit is contained in:
1 parent
307a8e79af
commit
28493e9a0e
8 files changed
+139
-5
No files matched your search
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# try.sh - demonstrate IOCCC entry abstract alternate code
|
||||
#
|
||||
# NOTE: if your submission wins and become an entry, 'abstract' will be changed
|
||||
# to the YYYY/directory name. You can remove this comment if you wish but if not
|
||||
# it'll be done by the judges.
|
||||
#
|
||||
|
||||
# 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" alt >/dev/null || exit 1
|
||||
|
||||
# clear screen after compilation so that only the entry is shown
|
||||
clear
|
||||
|
||||
# XXX - Invoke the program in one or more ways - XXX
|
||||
# XXX - It is good to use the shell built-in read to let the user - XXX
|
||||
# XXX - read what will happen and then proceed as they wish. - XXX
|
||||
# XXX - You may modify the command based on your program and you - XXX
|
||||
# XXX - may provide more than one invocation. - XXX
|
||||
# XXX - Please remove the XXX lines - XXX
|
||||
# XXX - an example follows - XXX
|
||||
|
||||
read -r -n 1 -p "Press any key to run: ./prog.alt: "
|
||||
echo 1>&2
|
||||
./prog.alt
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# try.sh - demonstrate IOCCC entry abstract
|
||||
#
|
||||
# NOTE: if your submission wins and become an entry, 'abstract' will be changed
|
||||
# to the YYYY/directory name. You can remove this comment if you wish but if not
|
||||
# it'll be done by the judges.
|
||||
#
|
||||
|
||||
# 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
|
||||
|
||||
# XXX - Invoke the program in one or more ways - XXX
|
||||
# XXX - It is good to use the shell built-in read to let the user - XXX
|
||||
# XXX - read what will happen and then proceed as they wish. - XXX
|
||||
# XXX - You may modify the command based on your program and you - XXX
|
||||
# XXX - may provide more than one invocation. - XXX
|
||||
# XXX - Please remove the XXX lines - XXX
|
||||
# XXX - an example follows - XXX
|
||||
|
||||
read -r -n 1 -p "Press any key to run: ./prog: "
|
||||
echo 1>&2
|
||||
./prog
|
||||
Reference in new issue
Block a user