httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r704717 - /httpd/site/trunk/dist/tools/release.sh
Date Tue, 14 Oct 2008 22:15:03 GMT
Author: rpluem
Date: Tue Oct 14 15:15:02 2008
New Revision: 704717

URL: http://svn.apache.org/viewvc?rev=704717&view=rev
Log:
* The European svn mirror might be more conveniant for some RM's. So add an
  option to use it.

Modified:
    httpd/site/trunk/dist/tools/release.sh

Modified: httpd/site/trunk/dist/tools/release.sh
URL: http://svn.apache.org/viewvc/httpd/site/trunk/dist/tools/release.sh?rev=704717&r1=704716&r2=704717&view=diff
==============================================================================
--- httpd/site/trunk/dist/tools/release.sh (original)
+++ httpd/site/trunk/dist/tools/release.sh Tue Oct 14 15:15:02 2008
@@ -3,7 +3,7 @@
 # release.sh : build a release tarball
 #
 # USAGE: release.sh [--security] [--tag TAG POSTFIX] [--postfix POSTFIX]
-#                   [--rev REV] PROJECT VERSION [SIGNING-USER]
+#                   [--rev REV] [--europe] PROJECT VERSION [SIGNING-USER]
 #
 #   The project is either 'httpd-2.0', 'httpd-2.2', 'httpd-2.3'
 #
@@ -24,6 +24,8 @@
 # when SVN props are used inside files.
 TZ=UTC
 
+SVNHOST=svn.apache.org
+
 while true
 do
   case "$1" in
@@ -49,9 +51,14 @@
       shift 2
       ;;
 
+    --europe)
+      SVNHOST=svn.eu.apache.org
+      shift
+      ;;
+
     --*)
      echo "Unknown option '$1'" >&2
-     echo "USAGE: $0 [--security] [--tag TAG POSTFIX] [--postfix POSTFIX] [--rev REV] PROJECT
VERSION [SIGNING-USER]" >&2
+     echo "USAGE: $0 [--security] [--tag TAG POSTFIX] [--postfix POSTFIX] [--rev REV] [--europe]
PROJECT VERSION [SIGNING-USER]" >&2
      echo "  see the comments in this script for more info." >&2
      exit 1
      ;;
@@ -64,7 +71,7 @@
 done
 
 if test "$#" != 2 && test "$#" != 3; then
-  echo "USAGE: $0 [--security] [--tag TAG POSTFIX] [--postfix POSTFIX] [--rev REV] PROJECT
VERSION [SIGNING-USER]" >&2
+  echo "USAGE: $0 [--security] [--tag TAG POSTFIX] [--postfix POSTFIX] [--rev REV] [--europe]
PROJECT VERSION [SIGNING-USER]" >&2
   echo "  see the comments in this script for more info." >&2
   exit 1
 fi
@@ -184,18 +191,18 @@
 echo ""
 
 if test "${rev}" != ""; then
-  svn export ${rev} https://svn.apache.org/repos/asf/httpd/httpd/${branch} ${dirname} >
/dev/null || exit 1
+  svn export ${rev} https://${SVNHOST}/repos/asf/httpd/httpd/${branch} ${dirname} > /dev/null
|| exit 1
 else
-  svn export https://svn.apache.org/repos/asf/httpd/httpd/tags/${tagname} ${dirname} >
/dev/null || exit 1
+  svn export https://${SVNHOST}/repos/asf/httpd/httpd/tags/${tagname} ${dirname} > /dev/null
|| exit 1
 fi
 
 ### Add a check to see if what was checked out matches $vsn
 
 if test ${apr_xxx_in_srclib}; then
   echo "Starting SVN export of apr-${apr_tag} to ${dirname}/srclib ..."
-  svn export https://svn.apache.org/repos/asf/apr/apr/tags/${apr_tag} ${dirname}/srclib/apr
> /dev/null || exit 1
+  svn export https://${SVNHOST}/repos/asf/apr/apr/tags/${apr_tag} ${dirname}/srclib/apr >
/dev/null || exit 1
   echo "Starting SVN export of apr-util-${apu_tag} to ${dirname}/srclib ..."
-  svn export https://svn.apache.org/repos/asf/apr/apr-util/tags/${apu_tag} ${dirname}/srclib/apr-util
> /dev/null || exit 1
+  svn export https://${SVNHOST}/repos/asf/apr/apr-util/tags/${apu_tag} ${dirname}/srclib/apr-util
> /dev/null || exit 1
 fi
 
 echo $split



Mime
View raw message