Hi *,

On Sat, Jun 02, 2007 at 08:56:16PM -0400, Denver Gingerich wrote:
> Is it possible to construct a zip file from the extracted contents of
> an ods or odt file that is identical to the original ods/odt file? 

Probably.

> I
> would like to be able to do something like the following:
> 
> $ unzip doc.odt -d doc
> $ cd doc
> $ zip [options] ../doc2.zip *

This won't work, since at least some files are only stored, not
compressed. And the directories are a trickier to add, since the
original zips don't contain seperate entries for the parent directory..
And timestamps will probably cause problems as well

> $ diff ../doc.odt ../doc2.zip && echo match
> match
> 
> I tried the following with [options] being -9Xr, but the resulting zip
> file was 7163 bytes and the original odt was 6741 bytes.

Hmm - your new file was bigger?
> 
> This has been discussed to some extent before
> (http://www.openoffice.org/servlets/BrowseList?list=dev&by=thread&from=1243563),
> but it was specifically in relation to storing OOo files in
> Subversion, which is in the end what I'm interested in. 

http://sourceforge.net/projects/ooosvn might do what you're looking for
already (didn't try it myself yet)

ciao
Christian
-- 
NP: Jimi Hendrix - Hey Joe

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to