Mailing Lists: Apple Mailing Lists

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

Re: How do I "Create Archive" through Bash?



This is an odd list to send this to; I'd have thought installer-dev would be better.

Installer package files include a symbolic link to the pax archive. Normally, zip follows symbolic links, compressing fresh copies of the targets.

man zip and look at the -y switch.

	— F

On 23 Jul 2007, at 2:20 AM, Paul Tapper wrote:

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

_______________________________________________ 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
References: 
 >How do I "Create Archive" through Bash? (From: "Paul Tapper" <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.