netradiant-custom/install-gamepacks.sh
2010-04-12 08:15:27 +02:00

31 lines
466 B
Bash
Executable File

#!/bin/sh
: ${ECHO:=echo}
: ${SH:=sh}
: ${CP:=cp}
: ${CP_R:=cp -r}
dest=$1
case "$DOWNLOAD_GAMEPACKS" in
yes)
LICENSEFILTER=GPL BATCH=1 $SH download-gamepacks.sh
;;
all)
BATCH=1 $SH download-gamepacks.sh
;;
*)
;;
esac
set -e
for GAME in games/*; do
if [ "$GAME" = "games/*" ]; then
$ECHO "Game packs not found, please run"
$ECHO " ./download-gamepacks.sh"
$ECHO "and then try again!"
else
$SH install-gamepack.sh "$GAME" "$dest"
fi
done