plugins/compile.sh
author Nicholas Hastings <skamonkey@gmail.com>
Sun Mar 17 11:39:04 2013 -0400 (2013-03-17)
changeset 3833 7563b32966af
parent 2527 6271a67d06eb
child 3953 ea7a34452243
permissions -rwxr-xr-x
Moved PCRE_STATIC def in Regex ext to extension instead of modifying pcre header (bug 5593).
     1 #!/bin/bash
     2 
     3 test -e compiled || mkdir compiled
     4 
     5 if [[ $# -ne 0 ]]
     6 then
     7     for i in "$@"; 
     8     do
     9         smxfile="`echo $i | sed -e 's/\.sp$/\.smx/'`";
    10 	    echo -n "Compiling $i...";
    11 	    ./spcomp $i -ocompiled/$smxfile
    12     done
    13 else
    14 
    15 for sourcefile in *.sp
    16 do
    17 	smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"
    18 	echo -n "Compiling $sourcefile ..."
    19 	./spcomp $sourcefile -ocompiled/$smxfile
    20 done
    21 fi