Move 2013/birken/try.sh to try.alt.sh, add try.sh
This commit is contained in:
1 parent
b157e5ddaf
commit
fb65693ef5
4 files changed
+46
-13
No files matched your search
+2
-6
@@ -14,17 +14,13 @@ make clobber CC="$CC" everything >/dev/null || exit 1
|
||||
# clear screen after compilation so that only the entry is shown
|
||||
clear
|
||||
|
||||
if [[ -z "$BIRKEN" ]]; then
|
||||
BIRKEN="birken.alt"
|
||||
fi
|
||||
|
||||
trap 'reset; exit' 0 1 2 3 15
|
||||
|
||||
PERL="$(type -P perl)"
|
||||
|
||||
if [[ -n "$PERL" ]]; then
|
||||
read -r -n 1 -p "Press any key to try a random run: "
|
||||
perl -e 'map{map{print int(rand()*8);}(0..16);print chr(10);}(0..30);' | tr '[0-4]' ' '| ./birken.alt
|
||||
perl -e 'map{map{print int(rand()*8);}(0..16);print chr(10);}(0..30);' | tr '[0-4]' ' '| ./birken
|
||||
fi
|
||||
|
||||
for i in *.txt; do
|
||||
@@ -33,7 +29,7 @@ for i in *.txt; do
|
||||
-e 's/Cheepcheep/Cheep Cheep/g' -e 's/Happyface/Happy Face/g' -e 's/Paranaplant/Piranha Plant/g' \
|
||||
-e 's/Koopaparatroopa/Koopa Paratroopa/g')"
|
||||
read -r -n1 -p "Press any key to try $NAME: "
|
||||
./"${BIRKEN}" < "$i"
|
||||
./birken < "$i"
|
||||
echo
|
||||
done
|
||||
clear
|
||||
Reference in new issue
Block a user