]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - install-gamepack.sh
load notex textures from a builtin vfs
[xonotic/netradiant.git] / install-gamepack.sh
index 4073d401a165a5746e1c9c1d7261781bab7eeca3..9d222c74d4f4873af1fc0365613d00fb1742790f 100755 (executable)
@@ -12,12 +12,26 @@ set -ex
 pack=$1
 dest=$2
 
-if [ -d "$pack/tools" ]; then
-       pack="$pack/tools"
-fi
+# Some per-game workaround for malformed gamepack
+case $pack in
+       */JediAcademyPack)
+               pack="$pack/Tools"
+       ;;
+       */PreyPack|*/Q3Pack)
+               pack="$pack/tools"
+       ;;
+       */WolfPack)
+               pack="$pack/bin"
+       ;;
+esac
+
 for GAMEFILE in "$pack/games"/*.game; do
-       $CP "$GAMEFILE" "$dest/games/"
+       if [ x"$GAMEFILE" != x"$pack/games/*.game" ]; then
+               $CP "$GAMEFILE" "$dest/games/"
+       fi
 done
-for GAMEDIR in "$pack"/*.game/; do
-       $CP_R "$GAMEDIR" "$dest/"
+for GAMEDIR in "$pack"/*.game; do
+       if [ x"$GAMEDIR" != x"$pack/*.game" ]; then
+               $CP_R "$GAMEDIR" "$dest/"
+       fi
 done