Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] How do I add a file (zip) to a package without compressing it


It is to create an EPUB Package.

To create the epub package, I need to create a .zip file and then change the extension from ".zip" to ".epub".

The problem is that one of the files to be added must not be compressed.

Marghanita


Amit Dor-Shifer wrote:
Package? You mean, a .zip/.tar archive ?
amit@pavement:~/.../1.1.x-RELEASE/package$ zip zip.zip /usr/lib/libgcr.so.0
  adding: usr/lib/libgcr.so.0 (deflated 64%)
amit@pavement:~/.../1.1.x-RELEASE/package$ zip -0 zip.zip /usr/lib/libgc.so.1
  adding: usr/lib/libgc.so.1 (stored 0%)
amit@pavement:~/.../1.1.x-RELEASE/package$ unzip -v zip.zip
Archive:  zip.zip
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
  293200  Defl:N   105072  64% 2010-11-10 06:25 1a7990d3  usr/lib/libgcr.so.0
  142648  Stored   142648   0% 2010-09-20 04:06 470822db  usr/lib/libgc.so.1
--------          -------  ---                            -------
  435848           247720  43%                            2 files
HTH,
Amit

2011/7/28 Marghanita da Cruz <marghanita@xxxxxxxxxxxx>:
I couldn't figure out how to do it via the Archive feature on the
Gnome/Ubuntu desktop.

Can anyone recommend a package or the command to do this with zip, tar?

Marghanita
--
Marghanita da Cruz
http://ramin.com.au
Tel: 0414-869202


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




--
Marghanita da Cruz
http://ramin.com.au
Tel: 0414-869202