From ab8f1f3a81da93c607b06183d7a0b7fb5c0abd6f Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Mon, 8 Mar 2021 15:53:57 +0100 Subject: [PATCH] Add get_gamepacks.sh, which updates and clones (if not present) src files and scripts for some example games and mods --- build_all.sh | 1 + get_gamepacks.sh | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 get_gamepacks.sh diff --git a/build_all.sh b/build_all.sh index 89d7cba1..9aec2531 100755 --- a/build_all.sh +++ b/build_all.sh @@ -1,4 +1,5 @@ #!/bin/sh ./build_engine.sh +./get_gamepacks.sh ./build_game.sh ./build_editor.sh diff --git a/get_gamepacks.sh b/get_gamepacks.sh new file mode 100755 index 00000000..04a0faa2 --- /dev/null +++ b/get_gamepacks.sh @@ -0,0 +1,23 @@ +#!/bin/sh +set -e +SCRPATH="$( cd "$( dirname $(readlink -nf $0) )" && pwd )" + +grab_mod() +{ + if [ -f "$SCRPATH/$1"/LICENSE ]; then + cd "$SCRPATH/$1" + git pull + else + cd "$SCRPATH" + git clone "$2" "$1" + fi +} + +grab_mod gearbox https://www.github.com/eukara/freegearbox +grab_mod rewolf https://www.github.com/eukara/freegunman +grab_mod poke646 https://www.github.com/eukara/freepoke646 +grab_mod tfc https://www.github.com/eukara/freetfc +grab_mod scihunt https://www.github.com/eukara/freesci +grab_mod hunger https://www.github.com/eukara/freehunger +grab_mod valve https://www.github.com/eukara/freehl +grab_mod cstrike https://www.github.com/eukara/freecs