Further improvements to 2012/blakely/try.sh
The script now has quotes surrounding commands with '*'s in it and the messages (of which some were added - only one existed before) were improved when it comes to giving a warning that the next command might take a bit of time. There are different messages depending on how slow the commands are though this obviously cannot be even close to perfect. Updated .gitignore.
This commit is contained in:
1 parent
7f65e208ca
commit
fdd053a89f
2 files changed
+11
-14
No files matched your search
@@ -3,14 +3,8 @@
|
|||||||
blakely
|
blakely
|
||||||
blakely.orig
|
blakely.orig
|
||||||
*.dSYM
|
*.dSYM
|
||||||
empty.gif
|
*.gif
|
||||||
flat.gif
|
|
||||||
indent
|
indent
|
||||||
indent.c
|
indent.c
|
||||||
indent.o
|
indent.o
|
||||||
output.gif
|
|
||||||
paraboloid.gif
|
|
||||||
pic.gif
|
|
||||||
prog.orig
|
prog.orig
|
||||||
ripple.gif
|
|
||||||
saddle.gif
|
|
||||||
+10
-7
@@ -15,9 +15,10 @@ make CC="$CC" all >/dev/null || exit 1
|
|||||||
# clear screen after compilation so that only the entry is shown
|
# clear screen after compilation so that only the entry is shown
|
||||||
clear
|
clear
|
||||||
|
|
||||||
read -r -n 1 -p "Press any key to run: ./blakely "xx*yy*+" 64 > paraboloid.gif: "
|
read -r -n 1 -p "Press any key to run: ./blakely 'xx*yy*+' 64 > paraboloid.gif: "
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
./blakely "xx*yy*+" 64 > paraboloid.gif
|
echo "This might take a bit of time, please be patient." 1>&2
|
||||||
|
./blakely 'xx*yy*+' 64 > paraboloid.gif
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
|
|
||||||
read -r -n 1 -p "Press any key to run: ./blakely 9 32 > empty.gif: "
|
read -r -n 1 -p "Press any key to run: ./blakely 9 32 > empty.gif: "
|
||||||
@@ -25,19 +26,21 @@ echo 1>&2
|
|||||||
./blakely 9 32 > empty.gif
|
./blakely 9 32 > empty.gif
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
|
|
||||||
read -r -n 1 -p "Press any key to run: ./blakely xy* 32 > saddle.gif: "
|
read -r -n 1 -p "Press any key to run: ./blakely 'xy*' 32 > saddle.gif: "
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
./blakely xy* 32 > saddle.gif
|
echo "This might take a little bit of time, please be patient." 1>&2
|
||||||
|
./blakely 'xy*' 32 > saddle.gif
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
|
|
||||||
read -r -n 1 -p "Press any key to run: ./blakely xx*yy*1++d5*ct/ 64 > ripple.gif: "
|
read -r -n 1 -p "Press any key to run: ./blakely 'xx*yy*1++d5*ct/' 64 > ripple.gif: "
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
./blakely xx*yy*1++d5*ct/ 64 > ripple.gif
|
echo "This might take a bit of time, please be patient." 1>&2
|
||||||
|
./blakely 'xx*yy*1++d5*ct/' 64 > ripple.gif
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
|
|
||||||
read -r -n 1 -p "Press any key to run: time ./blakely 0 250 > flat.gif: "
|
read -r -n 1 -p "Press any key to run: time ./blakely 0 250 > flat.gif: "
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
echo "This might take a bit of time, please be patient." 1>&2
|
echo "This might take a while, please be patient." 1>&2
|
||||||
time ./blakely 0 250 > flat.gif
|
time ./blakely 0 250 > flat.gif
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user