plugins/compile.sh
author Fyren <fyrenmoo@gmail.com>
Mon Apr 13 16:39:53 2009 -0700 (2009-04-13)
changeset 2696 32a50b96b644
parent 2527 6271a67d06eb
child 3953 ea7a34452243
permissions -rwxr-xr-x
Fix OnClientConnect rejectmsg handling, improve doc (bug 3690, r=dvander)
dvander@1403
     1
#!/bin/bash
dvander@1403
     2
dvander@1403
     3
test -e compiled || mkdir compiled
dvander@1403
     4
data@2527
     5
if [[ $# -ne 0 ]]
data@2527
     6
then
data@2527
     7
    for i in "$@"; 
data@2527
     8
    do
data@2527
     9
        smxfile="`echo $i | sed -e 's/\.sp$/\.smx/'`";
data@2527
    10
	    echo -n "Compiling $i...";
data@2527
    11
	    ./spcomp $i -ocompiled/$smxfile
data@2527
    12
    done
data@2527
    13
else
data@2527
    14
dvander@1403
    15
for sourcefile in *.sp
dvander@1403
    16
do
dvander@1403
    17
	smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"
dvander@1403
    18
	echo -n "Compiling $sourcefile ..."
dvander@1403
    19
	./spcomp $sourcefile -ocompiled/$smxfile
dvander@1403
    20
done
data@2527
    21
fi