Updating routes. Merge pull request #1 from NeonKnightOA/patch-2 Updating routes. Adding remaining gamepacks with respective links and setups. Merge pull request #2 from NeonKnightOA/patch-3 Adding remaining gamepacks with respective links and setups. Last route fixing and updating. My bad. Merge pull request #4 from NeonKnightOA/patch-4 Last route fixing and updating. My bad. Last update. It is now in its own project. Merge pull request #5 from NeonKnightOA/patch-5 Last update. It is now in its own project. From the Xonotic version of NetRadiant (update to the Unvanquished pack). Merge pull request #6 from NeonKnightOA/patch-6 From the Xonotic version of NetRadiant (update to the Unvanquished pa… Even more updates and gamepacks brought from Gitlab. Thanks to @illwieckz for this. Even more updates + workarounds for some games. Last of @illwieckz updates to the packs. Merge pull request #8 from NeonKnightOA/patch-7 Even more updates and gamepacks brought from Gitlab. Merge pull request #9 from NeonKnightOA/patch-8 Even more updates + workarounds for some games. Merge pull request #10 from NeonKnightOA/patch-9 Last of @illwieckz updates to the packs.
38 lines
593 B
Bash
Executable File
38 lines
593 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# installs a game pack
|
|
# Usage:
|
|
# install-gamepack.sh gamepack installdir
|
|
|
|
set -ex
|
|
|
|
: ${CP:=cp}
|
|
: ${CP_R:=cp -r}
|
|
|
|
pack=$1
|
|
dest=$2
|
|
|
|
# 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/"
|
|
fi
|
|
done
|
|
for GAMEDIR in "$pack"/*.game; do
|
|
if [ x"$GAMEDIR" != x"$pack/*.game" ]; then
|
|
$CP_R "$GAMEDIR" "$dest/"
|
|
fi
|
|
done
|