Fix compile.sh script for OS X.

This commit is contained in:
Scott Ehlert 2014-05-18 20:37:44 -05:00
parent d83ec1810a
commit 7ae802d736

View File

@ -12,18 +12,11 @@
test -e compiled || mkdir compiled test -e compiled || mkdir compiled
rm -f temp.txt rm -f temp.txt
# Choose compiler binary
if test `uname` = "Darwin"; then
pc=./amxxpc_osx
else
pc=./amxxpc
fi
for sourcefile in *.sma for sourcefile in *.sma
do do
amxxfile="`echo $sourcefile | sed -e 's/\.sma$/.amxx/'`" amxxfile="`echo $sourcefile | sed -e 's/\.sma$/.amxx/'`"
echo -n "Compiling $sourcefile ..." echo -n "Compiling $sourcefile ..."
$pc $sourcefile -ocompiled/$amxxfile >> temp.txt ./amxxpc $sourcefile -ocompiled/$amxxfile >> temp.txt
echo "done" echo "done"
done done