Fix compile.sh script for OS X.
This commit is contained in:
parent
d83ec1810a
commit
7ae802d736
|
@ -12,18 +12,11 @@
|
|||
test -e compiled || mkdir compiled
|
||||
rm -f temp.txt
|
||||
|
||||
# Choose compiler binary
|
||||
if test `uname` = "Darwin"; then
|
||||
pc=./amxxpc_osx
|
||||
else
|
||||
pc=./amxxpc
|
||||
fi
|
||||
|
||||
for sourcefile in *.sma
|
||||
do
|
||||
amxxfile="`echo $sourcefile | sed -e 's/\.sma$/.amxx/'`"
|
||||
echo -n "Compiling $sourcefile ..."
|
||||
$pc $sourcefile -ocompiled/$amxxfile >> temp.txt
|
||||
./amxxpc $sourcefile -ocompiled/$amxxfile >> temp.txt
|
||||
echo "done"
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user