new compile script from malex

This commit is contained in:
David Anderson 2004-09-17 06:11:14 +00:00
parent 26349730e5
commit 2e028ebe20

View File

@ -7,8 +7,18 @@
#
# This file is part of AMX Mod X.
# new code contributed by \malex\
test -e compiled || mkdir compiled
ls *.sma | xargs -i ./amxxsc \{\} -ocompiled/\{\} > temp.txt
ls compiled/*.amx | xargs -i basename \{\} .amx | xargs -i mv compiled/\{\}.amxx compiled/\{\}.amxx
more temp.txt
rm test.txt
for sourcefile in *.sma
do
amxxfile="`echo $sourcefile | sed -e 's/\.sma$/.amxx/'`"
echo -n "Compiling $sourcefile ..."
./amxxsc $sourcefile -ocompiled/$amxxfile >> temp.txt
echo "done"
done
less temp.txt
rm temp.txt