dvander@1403: #!/bin/bash dvander@1403: dvander@1403: test -e compiled || mkdir compiled dvander@1403: data@2527: if [[ $# -ne 0 ]] data@2527: then data@2527: for i in "$@"; data@2527: do data@2527: smxfile="`echo $i | sed -e 's/\.sp$/\.smx/'`"; data@2527: echo -n "Compiling $i..."; data@2527: ./spcomp $i -ocompiled/$smxfile data@2527: done data@2527: else data@2527: dvander@1403: for sourcefile in *.sp dvander@1403: do dvander@1403: smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`" dvander@1403: echo -n "Compiling $sourcefile ..." dvander@1403: ./spcomp $sourcefile -ocompiled/$smxfile dvander@1403: done data@2527: fi