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

Re: svn commit: r9278 - trunk

From: Blair Zajac <blair_at_orcaware.com>
Date: 2004-04-03 20:28:56 CEST

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 <blair@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
Received on Sat Apr 3 20:29:18 2004

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.