plugins/compile.sh
author Nicholas Hastings <skamonkey@gmail.com>
Thu Oct 03 10:43:20 2013 -0400 (2013-10-03)
changeset 4132 573937d3a538
parent 3953 ea7a34452243
permissions -rwxr-xr-x
Updated gamedata for CS:GO Get/SetClientContribution score.
dvander@1403
     1
#!/bin/bash
kyle@3953
     2
cd "$(dirname "$0")"
dvander@1403
     3
dvander@1403
     4
test -e compiled || mkdir compiled
dvander@1403
     5
data@2527
     6
if [[ $# -ne 0 ]]
data@2527
     7
then
data@2527
     8
    for i in "$@"; 
data@2527
     9
    do
data@2527
    10
        smxfile="`echo $i | sed -e 's/\.sp$/\.smx/'`";
data@2527
    11
	    echo -n "Compiling $i...";
data@2527
    12
	    ./spcomp $i -ocompiled/$smxfile
data@2527
    13
    done
data@2527
    14
else
data@2527
    15
dvander@1403
    16
for sourcefile in *.sp
dvander@1403
    17
do
dvander@1403
    18
	smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"
dvander@1403
    19
	echo -n "Compiling $sourcefile ..."
dvander@1403
    20
	./spcomp $sourcefile -ocompiled/$smxfile
dvander@1403
    21
done
data@2527
    22
fi