2008-03-30 09:00:22 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
test -e compiled || mkdir compiled
|
|
|
|
|
2009-01-13 22:14:44 +01:00
|
|
|
if [[ $# -ne 0 ]]
|
|
|
|
then
|
|
|
|
for i in "$@";
|
|
|
|
do
|
|
|
|
smxfile="`echo $i | sed -e 's/\.sp$/\.smx/'`";
|
|
|
|
echo -n "Compiling $i...";
|
|
|
|
./spcomp $i -ocompiled/$smxfile
|
|
|
|
done
|
|
|
|
else
|
|
|
|
|
2008-03-30 09:00:22 +02:00
|
|
|
for sourcefile in *.sp
|
|
|
|
do
|
|
|
|
smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"
|
|
|
|
echo -n "Compiling $sourcefile ..."
|
|
|
|
./spcomp $sourcefile -ocompiled/$smxfile
|
|
|
|
done
|
2009-01-13 22:14:44 +01:00
|
|
|
fi
|