annoying directory names

Nicholas Dille DarkYeti at gmx.net
Mon Jan 15 15:04:09 PST 2001


> On Mon, Jan 15, 2001 at 11:14:56PM +0100, Nicholas Dille wrote:
> > so i put that one on hold ... but i ran into the same question
> > and solved it by a perl script that extracted the path from
> > the archive only if there was a single top-level directory which
> > was the same on _all_ lines. otherwise it would fail and require
> > some kind of user interaction ...
>
> In one script that I wrote (ALFS profile creator ;), I used "-t"
> tar option to
> do exactly that and that worked very well, but the problem was/is, that it
> takes a lot of time with the larger archives. How did you do it?

i simply parsed the tar output and assured that each and every line in
the archive had the same top level directory.
i attached my couple of lines. just have a look. but i did not change a
thing
so quite a lot of this is still specific to my system ...

regards
nic.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inspect.pl
Type: application/octet-stream
Size: 602 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/alfs-discuss/attachments/20010116/14a84855/attachment.obj>


More information about the alfs-discuss mailing list