Dealing with tarballs that tarbomb
Daniel J. Luke
dluke at geeklair.net
Thu Apr 5 12:59:55 PDT 2007
On Apr 5, 2007, at 3:54 PM, Blair Zajac wrote:
> The scala tarball doesn't extract into a new subdirectory and
> instead just extracts into the directory where you run tar, i.e. a
> tarbomb. So in work/, you see a bin/ and a share/ directory.
>
> Is there an easy, clean way to deal with this in MacPorts? I
> looked at specifying some extract options, but I didn't see
> anything. I tried passing the ${distname} to tar -C's option to
> create the subdirectory, but this doesn't work, since the directory
> to put it in doesn't exist yet.
You could create the subdirectory in pre-extract and then do the above.
--
Daniel J. Luke
+========================================================+
| *---------------- dluke at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
| Opinions expressed are mine and do not necessarily |
| reflect the opinions of my employer. |
+========================================================+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.macosforge.org/pipermail/macports-dev/attachments/20070405/7486a5c5/PGP.bin
More information about the macports-dev
mailing list