-
-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathtry.alt.sh
More file actions
executable file
·63 lines (61 loc) · 1.84 KB
/
try.alt.sh
File metadata and controls
executable file
·63 lines (61 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env bash
#
# try.alt.sh - demonstrate IOCCC entry 1994/westley alternate code
#
# make sure CC is set so that one can control what compiler to use in an easy
# way.
if [[ -z "$CC" ]]; then
CC="cc"
fi
rm -f westley.alt
"${CC}" -Describe -Door westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Describe -Drain westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Describe -Dwarf westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Describe -Debris westley.alt.c -o westley.alt && ./westley.alt # or -Dungeon
sleep 1
echo 1>&2
"${CC}" -Describe -Desk westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Describe -Dime westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Describe -Directory westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Dial -DUNgeon0614 westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Drink -Daiquiri westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Drop -Daiquiri westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Drop -Dwarf -Daiquiri westley.alt.c -o westley.alt && ./westley.alt # or -Drop -Down -Daiquiri
sleep 1
echo 1>&2
"${CC}" -Describe -Document westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Depress -Dotted -Dog westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Depress -Dalmatian westley.alt.c -o westley.alt && ./westley.alt # also accepts "Dalmation" [sic]
sleep 1
echo 1>&2
"${CC}" -Deposit -Dime westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Drop -Donut westley.alt.c -o westley.alt && ./westley.alt
sleep 1
echo 1>&2
"${CC}" -Drop -Donut -Down -Drain westley.alt.c -o westley.alt && ./westley.alt # or -Drop -Dwarf -Donut
echo 1>&2
rm -f westley.alt