new compile script from malex
This commit is contained in:
parent
26349730e5
commit
2e028ebe20
|
@ -7,8 +7,18 @@
|
||||||
#
|
#
|
||||||
# This file is part of AMX Mod X.
|
# This file is part of AMX Mod X.
|
||||||
|
|
||||||
|
# new code contributed by \malex\
|
||||||
|
|
||||||
test -e compiled || mkdir compiled
|
test -e compiled || mkdir compiled
|
||||||
ls *.sma | xargs -i ./amxxsc \{\} -ocompiled/\{\} > temp.txt
|
rm test.txt
|
||||||
ls compiled/*.amx | xargs -i basename \{\} .amx | xargs -i mv compiled/\{\}.amxx compiled/\{\}.amxx
|
|
||||||
more temp.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
|
rm temp.txt
|
||||||
|
|
Loading…
Reference in New Issue
Block a user