amxmodx/plugins/compile.sh
2004-01-31 20:56:22 +00:00

7 lines
229 B
Bash
Executable File

#!/bin/bash
test -e compiled || mkdir compiled
ls *.sma | xargs -i ./sc \{\} -ocompiled/\{\} > temp.txt
ls compiled/*.sma | xargs -i basename \{\} .sma | xargs -i mv compiled/\{\}.sma compiled/\{\}.amx
more temp.txt
rm temp.txt