mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 11:40:44 +00:00
f64fdf3384
The 'colenemy' module searches for colored enemies in maps, excluding pal-21 liztroops. DONT_BUILD. git-svn-id: https://svn.eduke32.com/eduke32@4056 1a8010ca-5511-0410-912e-c29ae57300e0
34 lines
653 B
Bash
Executable file
34 lines
653 B
Bash
Executable file
#!/bin/bash
|
|
|
|
ok=yes
|
|
if [ -z "$1" ]; then
|
|
ok=
|
|
fi
|
|
if [ -z "$2" ]; then
|
|
ok=
|
|
fi
|
|
|
|
if [ -z "$ok" ]; then
|
|
echo "Usage: $0 <dir> <some_foreachmap_module.lua | code for foreachmap.lua -e>"
|
|
exit 1
|
|
fi
|
|
|
|
LOPT=-L
|
|
idx=$(expr match `uname -s` '[mM][iI][nN][gG][wW]')
|
|
if [ "$idx" != 0 ]; then
|
|
LOPT=
|
|
fi
|
|
|
|
FN="$1"
|
|
ARG="$2"
|
|
|
|
idx=$(expr match "$ARG" '.*lua$')
|
|
if [ "$idx" == 0 ]; then
|
|
ARG="-e$ARG"
|
|
find $LOPT "$FN" -iname '*.map' -print0 | xargs -0 ./foreachmap.lua "$ARG"
|
|
else
|
|
shift
|
|
# So that you can e.g. do
|
|
# ./findmaps.sh ~/.eduke32 ./colenemy.lua -u
|
|
find $LOPT "$FN" -iname '*.map' -print0 | xargs -0 ./foreachmap.lua "$@"
|
|
fi
|