2004-01-31 23:56:22 +03:00
|
|
|
#!/bin/bash
|
2004-02-15 05:33:49 +03:00
|
|
|
|
2004-03-07 17:38:39 +03:00
|
|
|
# AMX Mod X
|
2004-02-15 05:33:49 +03:00
|
|
|
#
|
2004-03-07 17:38:39 +03:00
|
|
|
# by the AMX Mod X Development Team
|
|
|
|
# originally developed by OLO
|
|
|
|
#
|
|
|
|
# This file is part of AMX Mod X.
|
2004-02-15 05:33:49 +03:00
|
|
|
|
2004-09-17 10:11:14 +04:00
|
|
|
# new code contributed by \malex\
|
|
|
|
|
2004-01-31 23:56:22 +03:00
|
|
|
test -e compiled || mkdir compiled
|
2006-06-06 04:29:05 +04:00
|
|
|
rm -f temp.txt
|
2004-09-17 10:11:14 +04:00
|
|
|
|
2013-02-13 11:14:37 +04:00
|
|
|
# Choose compiler binary
|
|
|
|
if test `uname` = "Darwin"; then
|
|
|
|
pc=./amxxpc_osx
|
|
|
|
else
|
|
|
|
pc=./amxxpc
|
|
|
|
fi
|
|
|
|
|
2004-09-17 10:11:14 +04:00
|
|
|
for sourcefile in *.sma
|
|
|
|
do
|
|
|
|
amxxfile="`echo $sourcefile | sed -e 's/\.sma$/.amxx/'`"
|
|
|
|
echo -n "Compiling $sourcefile ..."
|
2013-02-13 11:14:37 +04:00
|
|
|
$pc $sourcefile -ocompiled/$amxxfile >> temp.txt
|
2004-09-17 10:11:14 +04:00
|
|
|
echo "done"
|
|
|
|
done
|
|
|
|
|
|
|
|
less temp.txt
|
2004-09-17 04:51:20 +04:00
|
|
|
rm temp.txt
|