I think these are the two options you're after:
> -C, --directory DIR
change to directory DIR
--strip-components NUMBER, --strip-path NUMBER
strip NUMBER of leading components from file names before extraction
(1) tar-1.14 uses --strip-path, tar-1.14.90+ uses --strip-components
Example:
$ mkdir folder_name
$ tar -xf
> bfoz-p5-WWW-iTunesConnect-eeb32c951a0fde722a3b100101783894e4de8f38.tar
> --strip-components 1 --directory folder_name
$ ls -r folder_name/
t lib README Makefile.PL META.yml MANIFEST Changes
Tekkub
Github Tech Support
http://support.github.com/
Join us on IRC: #github on freenode.net
Discussion group: [email protected]
On Sat, Aug 29, 2009 at 11:52 PM, Brandon <[email protected]> wrote:
>
> Here's what the tarball should look like...
>
> $ tar tf p5-WWW-iTunesConnect-1.13.tar.gz
> p5-WWW-iTunesConnect-1.13/
> p5-WWW-iTunesConnect-1.13/Changes
> p5-WWW-iTunesConnect-1.13/MANIFEST
> p5-WWW-iTunesConnect-1.13/META.yml
> p5-WWW-iTunesConnect-1.13/Makefile.PL
> p5-WWW-iTunesConnect-1.13/README
> p5-WWW-iTunesConnect-1.13/lib/
> p5-WWW-iTunesConnect-1.13/t/
> p5-WWW-iTunesConnect-1.13/t/WWW-iTunesConnect.t
> p5-WWW-iTunesConnect-1.13/lib/WWW/
> p5-WWW-iTunesConnect-1.13/lib/WWW/iTunesConnect.pm
>
> So I still need the top level directory, but it needs to have the same
> name as the tarball itself (without the extension). Is there some way
> to do that?
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GitHub" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/github?hl=en
-~----------~----~----~----~------~----~------~--~---