1 #!/bin/bash
2
3 test -e compiled || mkdir compiled
4
5 for sourcefile in *.sp
6 do
7 smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"
8 echo -n "Compiling $sourcefile ..."
9 ./spcomp $sourcefile -ocompiled/$smxfile
10 done
11