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" "$@"
49 $MV zipdownload/*/* "games/$pack/"
55 $GIT archive --remote="$source" --prefix="$pack/" "$2":"$1" | tar xvf -
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" "$@"
125 $MV zipdownload/*/* "games/$pack/"
130 $GIT archive --remote="$source" --prefix="$pack/" "$2":"$1" | tar xvf -
135 $GIT clone "$source" "$pack"
139 extra_urls "games/$pack"
143 pack DarkPlacesPack GPL svn https://zerowing.idsoftware.com/svn/radiant.gamepacks/DarkPlacesPack/branches/1.5/
144 pack NexuizPack GPL gitdir git://git.icculus.org/divverent/nexuiz.git misc/netradiant-NexuizPack master
145 pack OpenArenaPack unknown zip1 http://ingar.satgnu.net/files/gtkradiant/gamepacks/OpenArenaPack.zip
146 pack Q3Pack proprietary svn https://zerowing.idsoftware.com/svn/radiant.gamepacks/Q3Pack/trunk/ -r29
147 pack Quake2Pack proprietary zip1 http://ingar.satgnu.net/files/gtkradiant/gamepacks/Quake2Pack.zip
148 pack Quake2WorldPack GPL svn svn://jdolan.dyndns.org/quake2world/trunk/gtkradiant
149 pack QuakePack proprietary zip1 http://ingar.satgnu.net/files/gtkradiant/gamepacks/QuakePack.zip
150 pack TremulousPack proprietary zip1 http://ingar.satgnu.net/files/gtkradiant/gamepacks/TremulousPack.zip
151 pack UFOAIPack proprietary svn https://zerowing.idsoftware.com/svn/radiant.gamepacks/UFOAIPack/branches/1.5/
152 pack WarsowPack GPL svn http://opensvn.csie.org/warsowgamepack/netradiant/games/WarsowPack/
153 pack XonoticPack GPL git git://git.xonotic.org/xonotic/netradiant-xonoticpack.git