assaultfish/wizard.sh

24 lines
521 B
Bash
Raw Normal View History

2026-01-12 02:36:28 +09:00
#!/bin/sh
if [ -d build ]; then
echo "Run me from build, not top directory"
exit 1
fi
if [ "x$USE_WINE" = "x" ]; then
USE_WINE=false
fi
2026-01-12 06:15:07 +09:00
if [ ! "x$WINE" = "x" ]; then
W=$WINE
2026-01-12 02:36:28 +09:00
E=.exe
fi
2026-01-13 04:28:36 +09:00
ls -d ../resource/model/* | while read a; do
N=`echo $a | rev | cut -d/ -f1 | rev`
2026-01-19 14:28:49 +09:00
echo "----- $N.gsm"
2026-01-19 07:06:52 +09:00
$W ./engine/tools/gs_makepak$E ../data/mdl/$N.gsm ../resource/model/$N
2026-01-13 04:28:36 +09:00
done
2026-01-19 14:28:49 +09:00
echo "----- base.gsp"
2026-01-19 07:06:52 +09:00
$W ./engine/tools/gs_makepak$E base.gsp ../engine/data
2026-01-19 14:28:49 +09:00
echo "----- game.gsp"
2026-01-19 07:06:52 +09:00
$W ./engine/tools/gs_makepak$E game.gsp ../data