Mohammed Adnène Trojette wrote:
> On Sat, May 14, 2005, Adam Porter wrote:
> 
>>Just FYI, this still doesn't work with 4.18-1.  I checked the upstream
>>bug report, but no progress has been made on it.
> 
> 
> This[1] script shows how to use exclude lists. Actually, I just followed
> the syntax you gave to me in this bug report.
> 
> [0] http://adn.diwi.org/debian/p7zip/excluding-dirs.sh.txt
> [1] http://adn.diwi.org/debian/p7zip/excluding-dirs.sh
> 
> Here[2] is the output.
> 
> [2] http://adn.diwi.org/debian/p7zip/excluding-dirs.sh.txt
> 
> Conclusion: one has to put the relative paths to the directories from
>             the directory from where you are adding to archive.
> 
> May I close this report? I think I will add some information about this
> in next upload's documentation.

Thanks for following up.

I ran your script and checked the output, and now I understand what you
mean.  (Running version "4.29 beta", BTW.)  It seems to work in a fairly
logical manner now.  However, I did notice one thing that is still
confusing, and should at least be noted, IMO.  I used your script, but
changed the archive command to this:

$ 7z a directory.7z directory/* [EMAIL PROTECTED]

That results in the exact same archive as your unmodified script.  The
confusing part is, it would seem to me that adding the "/*" should cause
not the directory itself to be added to the archive, but only the
contents of the directory; i.e. instead of the archive containing a
"directory/contents of directory" structure, it should only contain the
contents of "directory", with no parent directory.

I guess that's a separate issue, so I don't see any reason to not close
this bug.  (Finally!)  But I do think it should be mentioned in the man
page, at least, because it doesn't do what one would think it should do
(IMHO).

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to