plugins/compile.sh
author David Anderson <dvander@alliedmods.net>
Sat Dec 22 08:57:08 2007 +0000 (2007-12-22)
changeset 1813 372939c88bc7
parent 1403 ecb9c66fd4bb
child 2527 6271a67d06eb
permissions -rwxr-xr-x
fixed amb1305 by making OnClientPostAdminCheck() always occur after OnClientPutInServer(). this is now GUARANTEED. it was undefined before, however the usual case was opposite. if plugins were relying on this, they were written poorly and shouldn't have worked in the first place, especially with the threaded SQL plugin.
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