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

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

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2003-03-10 22:29:41 CET

Michael Price <mprice@atl.lmco.com> writes:
> 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

I'm not sure I understand. Why not just replace the "r5240" with
"0.19", instead of adding "0.19" at the end?

-K

> 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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 10 23:06:43 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.