mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-24 16:01:00 +00:00
eef1977662
- Need to open some files in binary mode. - MinGW's "find" doesn't provide -L option, detect that. git-svn-id: https://svn.eduke32.com/eduke32@4051 1a8010ca-5511-0410-912e-c29ae57300e0
22 lines
351 B
Bash
Executable file
22 lines
351 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> <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
|
|
|
|
find $LOPT "$1" -iname '*.map' -print0 | xargs -0 ./foreachmap.lua "-e$2"
|