changed repo to lgsm-cs-funmaps
This commit is contained in:
31
serverfiles/cstrike/addons/amxmodx/scripting/compile.sh
Normal file
31
serverfiles/cstrike/addons/amxmodx/scripting/compile.sh
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
|
||||
# AMX Mod X
|
||||
#
|
||||
# by the AMX Mod X Development Team
|
||||
# originally developed by OLO
|
||||
#
|
||||
# This file is part of AMX Mod X.
|
||||
|
||||
# new code contributed by \malex\
|
||||
|
||||
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
|
||||
echo "done"
|
||||
done
|
||||
|
||||
less temp.txt
|
||||
rm temp.txt
|
||||
Reference in New Issue
Block a user