From 2e028ebe20e644bdc6039f911ecd5f2e3aa37228 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 17 Sep 2004 06:11:14 +0000 Subject: [PATCH] new compile script from malex --- plugins/compile.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/plugins/compile.sh b/plugins/compile.sh index ab1136c3..e9f8c4eb 100755 --- a/plugins/compile.sh +++ b/plugins/compile.sh @@ -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