Improve 2014/morgan/try.sh
After copying prog to morgan (which was already done) it removes prog and then uses morgan to build prog. Following this it shows that they're identical to each other. The rest of the script it uses morgan, not prog, and it's the same as before (what it runs) except that the use of 'ls' is no longer there as there is no need for it.
This commit is contained in:
1 parent
061c86ebf8
commit
691a901b55
1 file changed
+23
-19
+23
-19
@@ -15,31 +15,35 @@ make CC="$CC" all >/dev/null || exit 1
|
||||
# clear screen after compilation so that only the entry is shown
|
||||
clear
|
||||
|
||||
|
||||
echo "$ cp -f prog morgan" 1>&2
|
||||
read -r -n 1 -p "Press any key to run: cp -f prog morgan: "
|
||||
echo 1>&2
|
||||
cp -f prog morgan
|
||||
echo "$ ls" 1>&2
|
||||
ls
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to run: rm -vf prog: "
|
||||
echo 1>&2
|
||||
rm -vf prog
|
||||
echo 1>&2
|
||||
read -r -n 1 -p "Press any key to run: ./morgan prog: "
|
||||
echo 1>&2
|
||||
./morgan prog
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to compare prog and morgan: "
|
||||
echo 1>&2
|
||||
diff -s prog morgan
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to run: ./morgan all install: "
|
||||
echo 1>&2
|
||||
./morgan all install
|
||||
echo 1>&2
|
||||
echo "$ ls" 1>&2
|
||||
ls
|
||||
|
||||
read -r -n 1 -p "Press any key to run: ./morgan love haste waste supernova: "
|
||||
echo 1>&2
|
||||
./morgan love haste waste supernova
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to run: ./prog love haste waste supernova: "
|
||||
read -r -n 1 -p "Press any key to run: ./morgan magic: "
|
||||
echo 1>&2
|
||||
./prog love haste waste supernova
|
||||
echo 1>&2
|
||||
echo "$ ls" 1>&2
|
||||
ls
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to run: ./prog magic: "
|
||||
echo 1>&2
|
||||
./prog magic
|
||||
echo 1>&2
|
||||
echo "$ ls" 1>&2
|
||||
ls
|
||||
./morgan magic
|
||||
Reference in new issue
Block a user