also support XactCone and XactSphere
[divverent/netradiant.git] / install-gamepacks.sh
1 #!/bin/sh
2
3 : ${ECHO:=echo}
4 : ${SH:=sh}
5 : ${CP:=cp}
6 : ${CP_R:=cp -r}
7
8 dest=$1
9
10 case "$DOWNLOAD_GAMEPACKS" in
11         yes)
12                 LICENSEFILTER=GPL BATCH=1 $SH download-gamepacks.sh
13                 ;;
14         all)
15                 BATCH=1 $SH download-gamepacks.sh
16                 ;;
17         *)
18                 ;;
19 esac
20
21 set -e
22 for GAME in games/*; do
23         if [ "$GAME" = "games/*" ]; then
24                 $ECHO "Game packs not found, please run"
25                 $ECHO "  ./download-gamepacks.sh"
26                 $ECHO "and then try again!"
27         else
28                 $SH install-gamepack.sh "$GAME" "$dest"
29         fi
30 done