[EMAIL PROTECTED] wrote:
>
> On Fri, Apr 06, 2001 at 06:29:16AM -0500, David Douthitt scribbled:
> > My understanding is that tar takes your pathname as specified when you
> > pack. For example,
> >
> > tar cvf file.tar .
> > ...creates files with names like "./myfile1" "./myfile2" etc.
> >
> > tar cvf file.tar *
> > ...creates files with names like "myfile1" "myfile2" etc.
> >
> > tar cvf file /pub/home/mydir
> > ...creates files with names like "/pub/home/mydir/myfile1"
> > "/pub/home/mydir/myfile2"
>
> My experience has shown otherwise; whenever I create a LRP package,
> I do this:
>
> tar cvzf package.lrp package/*
> and it creates package.lrp with everything in package/, but with no
> leading "package/".
That is what I would expect. Your example is not like any of mine at
all.
In the shell, package/* expands to:
package/myfile1 package/myfile2 package/myfile3 ...
...and does NOT include the directory "package" - so the directory
isn't included in the tar file, just all of the files it contains
(along with any directories it contains). Since tar is recursive, and
creates directories as required, the only difference between:
tar cvf file.tar package/*
...and...
tar cvf file.tar package
...is that the latter tar file contains an entry for the directory
alone. Knowing this can help to save space in the tar file
methinks...
_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel