[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] fix dist.sh tar-ball name.

From: Michael Price <mprice_at_atl.lmco.com>
Date: 2003-03-10 22:54:43 CET

This patch is to get a tar-ball with a pretty name as opposed to the
less than informative (for end-users) -rXXXX stuff. The rXXXX is still
in the --version comments though.

This is a "change dist.sh as little as possible patch" and not a "make
dist.sh pretty" patch.

I wanted to get comments before checking it in.

Sample usage:

  ./dist.sh HEAD r5240 http://svn.collab.net/repos/svn/branches/release-0.19 0.19

Michael

=============

Index: dist.sh
===================================================================
--- dist.sh (revision 5265)
+++ dist.sh (working copy)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 #
-# USAGE: ./dist.sh [VERSION [NAME [REPOS-PATH]]]
+# USAGE: ./dist.sh [VERSION [NAME [REPOS-PATH [RELEASE-NUMBER]]]]
 #
 # Create a distribution tarball, labelling it with the given version. If
 # the version is not supplied, the HEAD version will be used.
@@ -24,6 +24,8 @@
 # Run this script in the top-level of a configured working copy that
 # has apr, apr-util, and neon subdirs, and you'll end up with
 # subversion-rXXX.tar.gz in that top-level directory.
+# If you specified a RELEASE-NUMBER then you'll end up with
+# subversion-RELEASE-NUMBER.tar.gz
 #
 # Unless specified otherwise (with a single REVISION argument to this
 # script), the tarball will be based on the HEAD of the repository.
@@ -69,9 +71,14 @@
   REPOS_PATH="`echo $REPOS_PATH | sed 's/^\/*//'`"
 fi
 
+RELEASE_NUMBER="$4"
+if test -z "$RELEASE_NUMBER"; then
+ RELEASE_NUMBER="$RELEASE_NAME"
+fi
+
 ### The tarball's basename, also the name of the subdirectory into which
 ### it should unpack.
-DISTNAME=subversion-${RELEASE_NAME}
+DISTNAME=subversion-${RELEASE_NUMBER}
 echo "Distribution will be named: ${DISTNAME}"
 echo " constructed from path: /${REPOS_PATH}"
 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 10 22:56:06 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.