Initial commit
This commit is contained in:
20
scripting/compile.sh
Normal file
20
scripting/compile.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash -e
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
test -e compiled || mkdir compiled
|
||||
|
||||
if [[ $# -ne 0 ]]; then
|
||||
for sourcefile in "$@"
|
||||
do
|
||||
smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"
|
||||
echo -e "\nCompiling $sourcefile..."
|
||||
./spcomp $sourcefile -ocompiled/$smxfile
|
||||
done
|
||||
else
|
||||
for sourcefile in *.sp
|
||||
do
|
||||
smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"
|
||||
echo -e "\nCompiling $sourcefile ..."
|
||||
./spcomp $sourcefile -ocompiled/$smxfile
|
||||
done
|
||||
fi
|
Reference in New Issue
Block a user