]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
remove svn:externals-using games subdirectory
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Thu, 7 Jan 2010 19:58:51 +0000 (19:58 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Thu, 7 Jan 2010 19:58:51 +0000 (19:58 +0000)
instead, add a download-gamepacks.sh script

git-svn-id: svn://svn.icculus.org/netradiant/trunk@415 61c419a2-8eb2-4b30-bcec-8cead039b335

COMPILING
download-gamepacks.sh [new file with mode: 0644]

index 9c48dff1fb2dfa9526b0c2e10d4f07741c3eeaab..148c6eded9b3502395bf4b1ccd5e14e22d331df3 100644 (file)
--- 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 (file)
index 0000000..f1a58f8
--- /dev/null
@@ -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/