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