#!/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 if [ ! "x$WINE" = "x" ]; then W=$WINE E=.exe fi ls -d ../resource/model/* | while read a; do N=`echo $a | rev | cut -d/ -f1 | rev` $W ./engine/tools/gs_makepak$E ../data/mdl/$N.mdl ../resource/model/$N done $W ./engine/tools/gs_makepak$E base.pak ../engine/data $W ./engine/tools/gs_makepak$E game.pak ../data