plugins/compile.sh
author David Anderson <dvander@alliedmods.net>
Sun Oct 05 15:20:17 2008 -0700 (2008-10-05)
changeset 2342 70d4ef38b90e
parent 1403 ecb9c66fd4bb
child 2527 6271a67d06eb
permissions -rwxr-xr-x
Added MaxClients public var to replace GetMaxClients (bug 3283, r=pred).
This is a hard bump of the plugin version number. 1.1 plugins compiled against this include set
will not run against earlier versions of SourceMod.
dvander@1403
     1
#!/bin/bash
dvander@1403
     2
dvander@1403
     3
test -e compiled || mkdir compiled
dvander@1403
     4
dvander@1403
     5
for sourcefile in *.sp
dvander@1403
     6
do
dvander@1403
     7
	smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"
dvander@1403
     8
	echo -n "Compiling $sourcefile ..."
dvander@1403
     9
	./spcomp $sourcefile -ocompiled/$smxfile
dvander@1403
    10
done
dvander@1403
    11