Merge pull request #24 from 50Wliu/compile

Compile.sh spacing improvements
This commit is contained in:
Kyle Sanderson 2014-06-06 19:52:56 -07:00
commit ec9791b183

View File

@ -5,18 +5,21 @@ test -e compiled || mkdir compiled
if [[ $# -ne 0 ]]
then
for i in "$@";
do
smxfile="`echo $i | sed -e 's/\.sp$/\.smx/'`";
echo -n "Compiling $i...";
./spcomp $i -ocompiled/$smxfile
for sourcefile in "$@";
do
smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`";
echo -e "\nCompiling $sourcefile...";
./spcomp $i -ocompiled/$smxfile
done
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..."