SLUG Mailing List Archives
Re: [SLUG] How do I add a file (zip) to a package without compressing it
- To: DaZZa <dazzagibbs@xxxxxxxxx>
- Subject: Re: [SLUG] How do I add a file (zip) to a package without compressing it
- From: peter@xxxxxxxxxxxxxxxxxx
- Date: Thu, 28 Jul 2011 12:35:04 +1000
- Cc: slug@xxxxxxxxxxx
- User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)
>>>>> "DaZZa" == DaZZa <dazzagibbs@xxxxxxxxx> writes:
DaZZa> 2011/7/28 Marghanita da Cruz <marghanita@xxxxxxxxxxxx>:
>> I looked at tar but couldn't figure out the option not to compress
>> there either. Does Tar compress or not compress by default?
DaZZa> So you could do something like this <from memory, not checked,
DaZZa> YMMV, if it don't work don't blame me, MAN is your friend etc
DaZZa> tar -czf archive.tgz <source1> <source2>
DaZZa> tar -Af archive.tgz <source3>
DaZZa> This'd add the first two files compressed, and the third
DaZZa> uncompressed. The zip -0 method is easier. :-)
I'm pretty sure that won't work, because a gxipped tarball is not
recognisably a tarball from tar's perspective.
tar czf z.tgx ...
is exactly the same as
tar cf - ... | gzip > z.tgz