Gentoo Archives: gentoo-dev

From: Michael Weber <xmw@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others)
Date: Tue, 12 Jun 2012 20:57:56
Message-Id: 4FD7ACEC.9020408@gentoo.org
In Reply to: Re: [gentoo-dev] RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others) by "Michał Górny"
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 06/12/2012 04:46 PM, Michał Górny wrote:
5 > Well, I was hoping to come up with something which doesn't involve
6 > running additional 'tar -t', to be honest. I have to think about
7 > it some more time.
8 >
9
10 FTR,
11
12 filelist=$(tar xvC /tmp/xxx --strip-components 1 \
13 -f ~/keithw-mosh-mosh-1.2.1-0-g778b5af.tar.gz 2>&1) || die
14
15 [ $(echo $filelist | sed 's:/.*::' | sort -u | wc -l) == 1 ] \
16 || ewarn "..."
17
18 does work with GNU tar, but not with bsdtar, which displays the
19 stripped filenames, plus an leading "x ".
20
21 Michael
22
23 - --
24 Gentoo Dev
25 http://xmw.de/
26
27
28 -----BEGIN PGP SIGNATURE-----
29 Version: GnuPG v2.0.17 (GNU/Linux)
30 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
31
32 iF4EAREIAAYFAk/XrOwACgkQknrdDGLu8JCbwwD+InGUaLTki1W6gYwy+O2zAEek
33 peIoy1cjDig3EWqRtacA/RVFf3P5y8MBRKaE7yeyzypTUomvXq6tWqVZSUywnjYL
34 =3Zw6
35 -----END PGP SIGNATURE-----