plugins/compile.sh
author David Anderson <dvander@alliedmods.net>
Fri Jul 11 05:14:32 2008 +0000 (2008-07-11)
branchrefac-jit
changeset 2190 880e81f30b5e
parent 2168 c24a6fa957db
child 2527 6271a67d06eb
permissions -rwxr-xr-x
GetContext() now returns 'this' as a hack (shouldn't+can't be accessed anyway)
dvander@2168
     1
#!/bin/bash
dvander@2168
     2
dvander@2168
     3
test -e compiled || mkdir compiled
dvander@2168
     4
dvander@2168
     5
for sourcefile in *.sp
dvander@2168
     6
do
dvander@2168
     7
	smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"
dvander@2168
     8
	echo -n "Compiling $sourcefile ..."
dvander@2168
     9
	./spcomp $sourcefile -ocompiled/$smxfile
dvander@2168
    10
done
dvander@2168
    11