4 # sh download-gamepack.sh
5 # LICENSEFILTER=GPL BATCH=1 sh download-gamepack.sh
20 if [ -f "$1/extra-urls.txt" ]; then
21 while IFS=" " read -r FILE URL; do
22 $WGET -O "$1/$FILE" "$URL"
23 done < "$1/extra-urls.txt"
34 if [ -d "games/$pack" ]; then
35 $ECHO "Updating $pack..."
38 $SVN update "games/$pack" "$@" || true
44 $WGET "$source" "$@" || true
45 $UNZIPPER *.zip || true
49 $MV zipdownload/*/* "games/$pack/" || true
55 $GIT archive --remote="$source" --prefix="$pack/" "$2":"$1" | tar xvf - || true
64 extra_urls "games/$pack"
69 $ECHO "Available pack: $pack"
70 $ECHO " License: $license"
71 $ECHO " Download via $sourcetype from $source"
73 case " $PACKFILTER " in
79 $ECHO "Pack $pack rejected because it is not in PACKFILTER."
83 case " $LICENSEFILTER " in
89 $ECHO "Pack $pack rejected because its license is not in LICENSEFILTER."
96 $ECHO "Download this pack? (y/n)"
112 $ECHO "Downloading $pack..."
113 case "$sourcetype" in
115 $SVN checkout "$source" "games/$pack" "$@" || true
121 $WGET "$source" "$@" || true
122 $UNZIPPER *.zip || true
125 $MV zipdownload/*/* "games/$pack/" || true
130 $GIT archive --remote="$source" --prefix="$pack/" "$2":"$1" | tar xvf - || true
135 $GIT clone "$source" "$pack" || true
139 extra_urls "games/$pack"
141 for D in "games/$pack"/*.game; do
150 pack DarkPlacesPack GPL svn https://zerowing.idsoftware.com/svn/radiant.gamepacks/DarkPlacesPack/branches/1.5/
151 pack NexuizPack GPL gitdir git://git.icculus.org/divverent/nexuiz.git misc/netradiant-NexuizPack master
152 pack OpenArenaPack unknown zip1 http://ingar.satgnu.net/files/gtkradiant/gamepacks/OpenArenaPack.zip
153 pack OsirionPack GPL zip1 http://ingar.satgnu.net/files/gtkradiant/gamepacks/OsirionPack.zip
154 pack Q3Pack proprietary svn https://zerowing.idsoftware.com/svn/radiant.gamepacks/Q3Pack/trunk/ -r29
155 pack Quake2Pack proprietary zip1 http://ingar.satgnu.net/files/gtkradiant/gamepacks/Quake2Pack.zip
156 pack Quake2WorldPack GPL svn svn://jdolan.dyndns.org/quake2world/trunk/gtkradiant
157 pack QuakePack proprietary zip1 http://ingar.satgnu.net/files/gtkradiant/gamepacks/QuakePack.zip
158 pack TremulousPack proprietary zip1 http://ingar.satgnu.net/files/gtkradiant/gamepacks/TremulousPack.zip
159 pack UFOAIPack proprietary svn https://zerowing.idsoftware.com/svn/radiant.gamepacks/UFOAIPack/branches/1.5/
160 #pack WarsowPack GPL svn https://svn.bountysource.com/wswpack/trunk/netradiant/games/WarsowPack/
161 pack WarsowPack GPL zip1 http://ingar.satgnu.net/files/gtkradiant/gamepacks/WarsowPack.zip
162 pack XonoticPack GPL git git://git.xonotic.org/xonotic/netradiant-xonoticpack.git