Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Michael Weber <xmw@g.o>
Subject: Re: RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others)
Date: Tue, 12 Jun 2012 22:56:12 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 06/12/2012 04:46 PM, Michał Górny wrote:
> Well, I was hoping to come up with something which doesn't involve 
> running additional 'tar -t', to be honest. I have to think about
> it some more time.
> 

FTR,

filelist=$(tar xvC /tmp/xxx --strip-components 1 \
	-f ~/keithw-mosh-mosh-1.2.1-0-g778b5af.tar.gz 2>&1) || die

[ $(echo $filelist | sed 's:/.*::' | sort -u | wc -l) == 1 ] \
	|| ewarn "..."

does work with GNU tar, but not with bsdtar, which displays the
stripped filenames, plus an leading "x ".

Michael

- --
Gentoo Dev
http://xmw.de/


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iF4EAREIAAYFAk/XrOwACgkQknrdDGLu8JCbwwD+InGUaLTki1W6gYwy+O2zAEek
peIoy1cjDig3EWqRtacA/RVFf3P5y8MBRKaE7yeyzypTUomvXq6tWqVZSUywnjYL
=3Zw6
-----END PGP SIGNATURE-----


References:
RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others)
-- Michał Górny
Re: RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others)
-- Michael Weber
Re: RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others)
-- Michał Górny
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others)
Next by thread:
Last rites: gnustep-apps/projectmanager and dependencies
Previous by date:
Last rites: dev-python/apiextractor, dev-python/generatorrunner
Next by date:
ebuild laziness and binpkg overhead


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.