This is the mail archive of the
mailing list for the Cygwin project.
Re: Selectively zipping files together
On Thu, Oct 14, 2004 at 10:34:11PM -0600, Siegfried Heintze wrote:
>>From: Christopher Faylor
>>Sent: Thursday, October 14, 2004 9:55 PM
>>Subject: Re: Selectively zipping files together
>>>I'm trying to use sun's jar utility (from Sun's java development kit)
>>>with the Cygwin find command to selectively zip together a directory tree
>>>and send it to someone that can explode the tree using WinZIP or PKZIP.
>>>I suppose it off topic to discuss the jar utility here. I'm looking for an
>>>appropriate mailing list to solicit help with jar (suggestions are
>>Yes, it is off-topic. Why are you not just using the zip utility that
>> comes with cygwin?
>Well that was one of my questions. What is the zip utility that comes with
>Cygwin? Is it compatible with Windows zip?
How about this for an idea? Either install the zip utility and read the man
page or look at the description at http://cygwin.com/packages/ .
>And what about using tar with find? I hope that is not off topic. Why does
>tar insist on zipping up the entire directory instead of just the files I
>select with find?
I don't know. If you give tar a directory it will save the whole directory.
Obviously you are providing tar with a directory. "info tar" may be a useful
As a hint, your use of xargs would not work. If there are a lot of
arguments, xargs would invoke tar repeatedly, telling it to produce the
same file over and over again, wiping out the last archive.
You probably would want to use the '-T' option instead.
But, then, you really want to use 'zip'. Really.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html