You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Blair Zajac <bl...@orcaware.com> on 2004/04/03 18:28:56 UTC
Re: svn commit: r9278 - trunk
breser@tigris.org wrote:
>
> Author: breser
> Date: Sat Apr 3 01:48:27 2004
> New Revision: 9278
>
> Modified:
> trunk/dist.sh
> Log:
> Time to change how we build tarballs again. Next scheduled change in 2 weeks.
>
> * dist.sh
> Be pedantic and include the -x ustar option to pax since the Solaris man
> page doesn't bother to say what the default format is.
> Redirect any potential output of cd to /dev/null to avoid corrupting the
> tarballs.
>
> Modified: trunk/dist.sh
> ==============================================================================
> --- trunk/dist.sh (original)
> +++ trunk/dist.sh Sat Apr 3 01:48:27 2004
> @@ -171,9 +171,11 @@
> # be able to extract the resulting tar file. Use pax to produce POSIX.1
> # tar files.
> echo "Rolling $DISTNAME.tar.gz ..."
> -(cd "$DIST_SANDBOX" && pax -w "$DISTNAME") | gzip -9c > "$DISTNAME.tar.gz"
> +(cd "$DIST_SANDBOX" 2>&1 > /dev/null && pax -x ustar -w "$DISTNAME") | \
> + gzip -9c > "$DISTNAME.tar.gz"
Don't you mean
cd "$DIST_SANDBOX" >/dev/null 2>&1
instead. The order of redirection is important. Try this in your
own shell script on a bad directory
sh-2.05b$ cd /lscklsdcjk 2>&1 >/dev/null
sh: cd: /lscklsdcjk: No such file or directory
sh-2.05b$ cd /lscklsdcjk >/dev/null 2>&1
sh-2.05b$
Best,
Blair
--
Blair Zajac <bl...@orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svn commit: r9278 - trunk
Posted by Ben Reser <be...@reser.org>.
On Sat, Apr 03, 2004 at 10:28:56AM -0800, Blair Zajac wrote:
> Don't you mean
>
> cd "$DIST_SANDBOX" >/dev/null 2>&1
>
> instead. The order of redirection is important. Try this in your
> own shell script on a bad directory
>
> sh-2.05b$ cd /lscklsdcjk 2>&1 >/dev/null
> sh: cd: /lscklsdcjk: No such file or directory
> sh-2.05b$ cd /lscklsdcjk >/dev/null 2>&1
> sh-2.05b$
I included the 2>&1 in error. Shouldn't have been there at all. :)
--
Ben Reser <be...@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org