Bug fix 2012/vik/try.sh
The additional commands I added cannot come first because the program (as the bugs.md states and now more clearly) will likely crash (and does in all the systems I tested) if the file does not exist. This did not show itself the first time because the files already existed but running make clobber before the script would remove the image files and thus a crash (or actually two) would occur the first time the script was run (second time it would be fine as the files it uses then exist).
This commit is contained in:
1 parent
6f4167373f
commit
479601899b
3 files changed
+19
-22
No files matched your search
+12
-12
@@ -15,18 +15,6 @@ make CC="$CC" all >/dev/null || exit 1
|
||||
# clear screen after compilation so that only the entry is shown
|
||||
clear
|
||||
|
||||
read -r -n 1 -p "Press any key to embed chocolate in chocolate-in-ioccc.png: "
|
||||
echo 1>&2
|
||||
echo "$ ./vik e chocolate-in-ioccc.png \"Mmm... chocolate.\" > mmm-chocolate.png" 1>&2
|
||||
./vik e chocolate-in-ioccc.png "Mmm... chocolate." > mmm-chocolate.png
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to extract chocolate from mmm-chocolate.png: "
|
||||
echo 1>&2
|
||||
echo "$ ./vik d mmm-chocolate.png" 1>&2
|
||||
./vik d mmm-chocolate.png
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to embed chocolate.png in ioccc.png: "
|
||||
echo 1>&2
|
||||
echo "$ ./vik e ioccc.png chocolate.png > chocolate-in-ioccc.png" 1>&2
|
||||
@@ -39,6 +27,18 @@ echo "$ ./vik e chocolate.png ioccc.png > ioccc-in-chocolate.png"
|
||||
./vik e chocolate.png ioccc.png > ioccc-in-chocolate.png
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to embed chocolate in chocolate-in-ioccc.png: "
|
||||
echo 1>&2
|
||||
echo "$ ./vik e chocolate-in-ioccc.png \"Mmm... chocolate.\" > mmm-chocolate.png" 1>&2
|
||||
./vik e chocolate-in-ioccc.png "Mmm... chocolate." > mmm-chocolate.png
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to extract chocolate from mmm-chocolate.png: "
|
||||
echo 1>&2
|
||||
echo "$ ./vik d mmm-chocolate.png" 1>&2
|
||||
./vik d mmm-chocolate.png
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to embed a brainfuck program as a text file and decode it: "
|
||||
echo 1>&2
|
||||
echo "$ ./vik e ioccc.png .+[.+] > encodedimg.png" 1>&2
|
||||
|
||||
Reference in new issue
Block a user