X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=install-gamepack.sh;h=9d222c74d4f4873af1fc0365613d00fb1742790f;hb=f715e5f69a891e0d27d2faa1f76a8ef8337a33b4;hp=3a36c200ecdd6a6c3e1f788903d249ad25f877b7;hpb=62d99f889c0e98be65f779d3983109c84ce58cec;p=xonotic%2Fnetradiant.git diff --git a/install-gamepack.sh b/install-gamepack.sh index 3a36c200..9d222c74 100755 --- a/install-gamepack.sh +++ b/install-gamepack.sh @@ -12,9 +12,19 @@ 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 if [ x"$GAMEFILE" != x"$pack/games/*.game" ]; then $CP "$GAMEFILE" "$dest/games/"