plugins/compile.sh
author David Anderson <dvander@alliedmods.net>
Mon Aug 12 00:24:02 2013 +0100 (2013-08-12)
changeset 3993 d06d6dacfa18
parent 3953 ea7a34452243
permissions -rwxr-xr-x
Remove InfoVars, reassign DAT from EBP to ESI to preserve C++ stacktraces in JIT code (bug 5844 part 10, r=ds).
     1 #!/bin/bash
     2 cd "$(dirname "$0")"
     3 
     4 test -e compiled || mkdir compiled
     5 
     6 if [[ $# -ne 0 ]]
     7 then
     8     for i in "$@"; 
     9     do
    10         smxfile="`echo $i | sed -e 's/\.sp$/\.smx/'`";
    11 	    echo -n "Compiling $i...";
    12 	    ./spcomp $i -ocompiled/$smxfile
    13     done
    14 else
    15 
    16 for sourcefile in *.sp
    17 do
    18 	smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"
    19 	echo -n "Compiling $sourcefile ..."
    20 	./spcomp $sourcefile -ocompiled/$smxfile
    21 done
    22 fi