1.1 --- a/plugins/compile.sh Tue Jan 13 15:58:29 2009 -0500
1.2 +++ b/plugins/compile.sh Tue Jan 13 16:14:44 2009 -0500
1.3 @@ -2,10 +2,20 @@
1.4
1.5 test -e compiled || mkdir compiled
1.6
1.7 +if [[ $# -ne 0 ]]
1.8 +then
1.9 + for i in "$@";
1.10 + do
1.11 + smxfile="`echo $i | sed -e 's/\.sp$/\.smx/'`";
1.12 + echo -n "Compiling $i...";
1.13 + ./spcomp $i -ocompiled/$smxfile
1.14 + done
1.15 +else
1.16 +
1.17 for sourcefile in *.sp
1.18 do
1.19 smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"
1.20 echo -n "Compiling $sourcefile ..."
1.21 ./spcomp $sourcefile -ocompiled/$smxfile
1.22 done
1.23 -
1.24 +fi