From b8f41b5322a0de08fb521ef1852967dff02141d5 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 7 Jan 2010 19:58:51 +0000 Subject: [PATCH] remove svn:externals-using games subdirectory instead, add a download-gamepacks.sh script git-svn-id: svn://svn.icculus.org/netradiant/trunk@415 61c419a2-8eb2-4b30-bcec-8cead039b335 --- COMPILING | 8 ++--- download-gamepacks.sh | 77 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+), 5 deletions(-) create mode 100644 download-gamepacks.sh diff --git a/COMPILING b/COMPILING index 9c48dff1..148c6ede 100644 --- a/COMPILING +++ b/COMPILING @@ -14,11 +14,9 @@ The subversion client can be obtained from the Subversion site. To get a copy of the source using the commandline Subversion client: Change the current directory to the desired location for the source. - svn checkout http://emptyset.endoftheinternet.org/svn/radiant15/trunk/ ./GtkRadiant - svn checkout -r29 https://zerowing.idsoftware.com/svn/radiant.gamepacks/Q3Pack/trunk/ ./GtkRadiant/games/Q3Pack - svn checkout https://zerowing.idsoftware.com/svn/radiant.gamepacks/UFOAIPack/branches/1.5/ ./GtkRadiant/games/UFOAIPack - For other game packs, see https://zerowing.idsoftware.com/svn/radiant.gamepacks/ - Note that they must be in GtkRadiant 1.5's format (like the ones in a branches/1.5 subfolder)! + svn checkout http://svn.icculus.org/netradiant/trunk/ NetRadiant + cd NetRadiant + sh download-gamepacks.sh diff --git a/download-gamepacks.sh b/download-gamepacks.sh new file mode 100644 index 00000000..f1a58f86 --- /dev/null +++ b/download-gamepacks.sh @@ -0,0 +1,77 @@ +#!/bin/sh + +pack() +{ + pack=$1; shift + license=$1; shift + sourcetype=$1; shift + source=$1; shift + + if [ -d "games/$pack" ]; then + echo "Updating $pack..." + case "$sourcetype" in + svn) + svn update "games/$pack" "$@" + ;; + esac + return + fi + + echo + echo "Available pack: $pack" + echo " License: $license" + echo " Download via $sourcetype from $source" + echo + case " $PACKFILTER " in + " ") + ;; + *" $pack "*) + ;; + *) + echo "Pack $pack rejected because it is not in PACKFILTER." + return + ;; + esac + case " $LICENSEFILTER " in + " ") + ;; + *" $license "*) + ;; + *) + echo "Pack $pack rejected because its license is not in LICENSEFILTER." + return + ;; + esac + case "$BATCH" in + '') + while :; do + echo "Download this pack? (y/n)" + read -r P + case "$P" in + y*) + break + ;; + n*) + return + ;; + esac + done + ;; + *) + ;; + esac + + echo "Downloading $pack..." + case "$sourcetype" in + svn) + svn checkout "$source" "games/$pack" "$@" + ;; + esac +} + +pack NexuizPack GPL svn svn://svn.icculus.org/nexuiz/trunk/misc/netradiant-NexuizPack +pack Quake2WorldPack GPL svn svn://jdolan.dyndns.org/quake2world/trunk/gtkradiant +pack DarkPlacesPack GPL svn https://zerowing.idsoftware.com/svn/radiant.gamepacks/DarkPlacesPack/branches/1.5/ +pack WarsowPack GPL svn http://opensvn.csie.org/warsowgamepack/netradiant/games/WarsowPack/ +pack Q3Pack proprietary svn https://zerowing.idsoftware.com/svn/radiant.gamepacks/Q3Pack/trunk/ -r29 +pack UFOAIPack proprietary svn https://zerowing.idsoftware.com/svn/radiant.gamepacks/UFOAIPack/branches/1.5/ -- 2.39.2