From fdd053a89ffb02f62f47ad07de5268a4ceda9760 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Thu, 25 Jan 2024 05:12:12 -0800 Subject: [PATCH] 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. --- 2012/blakely/.gitignore | 8 +------- 2012/blakely/try.sh | 17 ++++++++++------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/2012/blakely/.gitignore b/2012/blakely/.gitignore index 94feba676..ceac26a4c 100644 --- a/2012/blakely/.gitignore +++ b/2012/blakely/.gitignore @@ -3,14 +3,8 @@ blakely blakely.orig *.dSYM -empty.gif -flat.gif +*.gif indent indent.c indent.o -output.gif -paraboloid.gif -pic.gif prog.orig -ripple.gif -saddle.gif diff --git a/2012/blakely/try.sh b/2012/blakely/try.sh index 549377320..71e265a59 100755 --- a/2012/blakely/try.sh +++ b/2012/blakely/try.sh @@ -15,9 +15,10 @@ 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 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 -./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 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 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 -./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 -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 -./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 read -r -n 1 -p "Press any key to run: time ./blakely 0 250 > flat.gif: " 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 echo 1>&2