Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I "Create Archive" through Bash?



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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.