Add better spacing to compile.sh

This commit is contained in:
Wliu 2014-06-04 21:17:40 -04:00
parent 5cb10441d7
commit cd106a7eb6

View File

@ -5,10 +5,10 @@ test -e compiled || mkdir compiled
if [[ $# -ne 0 ]]
then
for i in "$@";
for sourcefile in "$@";
do
smxfile="`echo $i | sed -e 's/\.sp$/\.smx/'`";
echo -n "Compiling $i...";
smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`";
echo -e "\nCompiling $sourcefile...";
./spcomp $i -ocompiled/$smxfile
done
else
@ -16,7 +16,10 @@ else
for sourcefile in *.sp
do
smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"
echo -n "Compiling $sourcefile ..."
echo -e "\nCompiling $sourcefile ..."
./spcomp $sourcefile -ocompiled/$smxfile
done
fi
echo -e "\n"
read -n1 -rsp "Press any key to continue..."