Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Easily create HFS-aware PKZIP and unix archives' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Easily create HFS-aware PKZIP and unix archives
Authored by: omnivector on Nov 26, '03 09:25:14PM
for those unix people in the house, here's a simple ruby script to maczip a folder. Usage: maczip creates .zip, and doesn't delete folder

#!/usr/bin/ruby

folder = ARGV[ 0 ]
folder = folder.sub( "/$", "" ) 

puts `ditto -c -k -X --rsrc "#{folder}" "#{folder}.zip"`
just drop that in a file named maczip, chmod it to 755, and put it in your bin folder of choice (~/bin)

---
- Tristan

[ Reply to This | # ]