How do I "Create Archive" through Bash?
How do I "Create Archive" through Bash?
- Subject: How do I "Create Archive" through Bash?
- From: "Paul Tapper" <email@hidden>
- Date: Mon, 23 Jul 2007 07:20:54 +0000
Hi,
I'm trying to use a bash script to automate the compression of a couple of
Meta-packages.
Each .mpkg is about 1.1Mb in size, and when I select them both in Finder,
right-click and select "Create Archive of Files" it makes an Archive.zip
which contains them both and is 1.6Mb in size.
I want to try to recreate this action via bash, and have tried using the
"zip" command, but I end up with zip files which are a lot bigger. Even
using "-9" as a parameter to zip, to try to force maximum compression, I
still end up with a zip file which is approx 3.2Mb (bigger than the sum of
the two .mpkg sizes!).
The command-line I'm using for zip is:
zip -r -q -9 MyArchive.zip ./MPKGs
Please can anyone tell me how to get a better compression from bash (or am I
just using zip wrong?)
Thanks for any help.
Paul
_________________________________________________________________
Win tickets to the sold out Live Earth concert! http://liveearth.uk.msn.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden