Macintosh Port of Info-Zip's Zip
by Dirk Haase, d_haase@sitec.net
homepage: www.sitec.net/maczip
13.November 1998
================================
Some notes about this port:
===========================
MacZip requires at least System 7 and a Macintosh with a minimum of a
Motorola 68020 or PowerPC 601 processor. Other configurations may work
but it is not tested at all.
The application is distributed as a fat binary with both regular 68K
and native PowerPC versions included.
Move the executable(s) somewhere--for example, drag it (or them) to your
Applications folder. For easy access, make an alias in the Launcher Control
Panel or directly on your desktop.
The GUI is very simple. It was not my intention to make a full-blown GUI,
however I think it is comfortable enough to use it as regular tool.
This port supports also Apple-event.So you can install it in your
WWW-Browser as a helper-app.
For more Info about the contents of this package, take a look into
the "macos/Contents" (or :macos:Contents) file. Some notes on how to
rebuild the Macintosh applications can be found in INSTALL.
Usage:
------
To extract a Zip archive, just drop it on MacZip.
MacZip will start and extract all files in a separate folder.
Or
Start MacZip; choose the app you want in the menu "Current App".
Select "File->Command Line" execute your selected app with the
Unix-style command-line
Or select
"File->Start Zip/Unzip" to execute your app via dialog-box.
For more information about switches choose File->Get help on
Zip/Unzip. A short introduction is also available online:
http://www.sitec.net/maczip/How-To-Do/
It's possible to stop the run of Zip/Unzip with the well
known shortcut [Command] + [.].
There are some Mac-specific switches available.
Zip Module:
-df [MacOS only] Include only data-fork of files
zipped into the archive. Good for exporting files
to foreign operating-systems. Resource-forks will
be ignored at all.
-jj [MacOS only] record Fullpath (+ Volname). The com-
plete path including volume will be stored. By
default the relative path will be stored.
-S Include system and hidden files. This option is
effective on some systems only; it is ignored on
Unix. On MacOS, this option includes finder invis-
ible files, which are ignored otherwise.
Unzip Module:
-E [MacOS only] display contents of MacOS extra field
during restore operation.
-i [MacOS only] ignore filenames stored in MacOS extra
fields. Instead, the most compatible filename
stored in the generic part of the entry's header is
used.
-J [MacOS only] ignore MacOS extra fields. All Macin-
tosh specific info is skipped. Data-fork and
resource-fork are restored as separate files.
Performance and Limitations:
----------------------------
I was curious about performance items. So I took one small test on my 200 PPC
under MacOS 8.1. To compare `Drop Stuff' with `MacZip' I archived my Netscape
folder:
143 Files in 21 folders about 15.6 Megabytes.
Compress:
Drop Stuff (4.0) needs 70 sec to compress and additional 20 sec to create
a HQX file.
Compression ratio: 2.01 times smaller
MacZip needs 45 sec to compress, so it's about 1.5 - 2 times faster.
Compression ratio: 2.06 times smaller
Expand:
Stuffit Expander (4.02) needs 35 sec to create a '.sit' file and
additional 35 sec to expand all files.
MacZip need 25 sec to expand all files so it's 1.7 - 3.5 times faster.
Limitations/Problems:
- Aliases are not supported. I tried, but I got broken aliases
This port will silently ignore all aliases.
It's on my to-do list for future releases.
- Zip needs much memory to compress many files:
You may need to increase the 'Preferred Size' in 'Get Info'.
Values of 12 Megabytes or more are possible
- Unzip needs about 500 Kbyte of memory to unzip no matter
how many files were compressed and expanded.
- and finally one big macintosh-related problem:
This port has one weak point: It's based on pathnames.
As you may be already know: Pathnames are not unique on a Mac !
The main reason is that an attempt to implement support exact saving of
the MacOS specific internal file-structures would require a throughout
rewrite of major parts of shared code, probably sacrifying compatibility
with other systems.
I have no solution at the moment. The port will just warn you if you try
zip from / to a volume which has a duplicate name.
MacZip has problems to find the archive or the files.
My (Big) recommendation: Name all your volumes with a unique name and
MacZip will run without any problem.
Known Bugs:
- Display of comments stored in the zip-file is in a mess.
- crypted files in a zip archive are sometimes corrupt:
I get an error message: invalid compressed data to inflate.
Appearance of this error is purly be change:
I did a small test: Unzipping an archive containing 3589 files
56 files fails to unzip, so about 1.5%
I strongly recommend to test your archive (eg. unzip -t archive).
Zip-Programs / Macintosh Extra-Data:
-----------------------------------------
A brief overview:
Currently, as far as I know, there are 4 Zip-Programs available
for the Macintosh platform.
These programs build (of cause) different variants of Zip-Files:
- Info-Zip's first Port of Zip. Ported by Johnny Lee
This Port is rather outdated and no longer supported (since 1992).
68K only. Only minimal Mac-info is stored (Creator/Type,
Finderattributes).
Until now, Only Unzip 5.32 survived.
- ZipIt by Tom Brown. This is Shareware and still supported I think.
ZipIt has a nice GUI, but I found it can't handle large Zipfiles
quite well. ZipIt compresses Macintosh files using the MacBinary
format. So, transfering files to other platforms is not so easy.
Only minimal Mac-info is stored (Creator/Type, Finderattributes).
Macfilenames are changed to a most compatible filename.
- PKZIP/mac v2.03/210d. This is Shareware.
This Zip implementation for the Mac can be found on ASI's website
(http://www.asizip.com/products/products.htm). The name of this
program is misleading, it is NOT a product from PKWARE. ASI last
release version is v2.03, and they also offer a newer beta version
PKZIP/mac 210d. But even the Beta version is rather outdated (1995).
Only minimal Mac-info is stored (Creator/Type, Finderattributes).
The Zipfile format looks like incompatible to other platforms.
(More details about the compatibility issue can be found in
proginfo/3rdparty.bug!)
Macfilenames are restored without any change.
and finally:
- Info-Zip's latest Port of Zip. MacZip 1.0. Ported by me :-)
It is supported (of cause) and up to date. Fullset of macintosh
info is stored: Creator/Type, Finderattributes, Findercomments,
MacOS 8.0 Foldersettings, Icon/Folder-Positions ...
Macfilenames are restored without any change.
Compatibility of my port; Extraction:
- Archives from Info-Zip's first port (by Johnny Lee) are still compatible.
- Archives from ZipIt can be extracted, but some files will still
remain in a MacBinaryformat, no Finderinfo will be restored.
- PKZiP/mac archives-files are extracted without resource-forks
and without any Finderinfo. I have no information about that zip-format.
Compatibility of my port; Compression:
- My port supports only the new Info-Zip format
(introduced with this port). Therefore archives created by MacZip 1.0
(1998) must be extracted with this version or later releases of Info-ZIP's
UnZip to restore the complete s
没有合适的资源?快使用搜索试试~ 我知道了~
很完整的解压zip文件的源码(可编译).zip
共312个文件
c:65个
h:58个
contents:20个
4星 · 超过85%的资源 需积分: 49 32 下载量 49 浏览量
2008-09-06
14:58:54
上传
评论
收藏 1019KB ZIP 举报
温馨提示
直接可以移植的zip算法程序模块. 完整的源代码.
资源详情
资源评论
资源推荐
收起资源包目录
很完整的解压zip文件的源码(可编译).zip (312个子文件)
unzip.1 37KB
zipinfo.1 21KB
unzipsfx.1 13KB
funzip.1 5KB
zipgrep.1 4KB
toolbar.2bp 646B
imglist.2bp 326B
History.540 24KB
flate.a 15KB
crc_68.a 4KB
crc_i86.asm 10KB
crc_i386.asm 8KB
crc_lcc.asm 2KB
makefile.azt 4KB
vbunzip.bas 16KB
makefile.bc 5KB
Makefile.bc 4KB
toolbar.bmp 1KB
imglist.bmp 630B
ilmask.bmp 190B
3rdparty.bug 5KB
BUGS 4KB
vms.c 96KB
win32.c 84KB
zipinfo.c 77KB
extract.c 75KB
fileio.c 70KB
msdos.c 69KB
os2.c 69KB
unzip.c 59KB
macos.c 56KB
process.c 51KB
macstuff.c 49KB
inflate.c 45KB
aosvs.c 45KB
unix.c 44KB
tandem.c 43KB
beos.c 40KB
rexxapi.c 33KB
amiga.c 33KB
flexos.c 32KB
qdos.c 32KB
explode.c 30KB
atari.c 30KB
acorn.c 29KB
cmdline.c 29KB
human68k.c 27KB
macunzip.c 24KB
list.c 23KB
filedate.c 21KB
windll.c 19KB
nt.c 19KB
ttyio.c 18KB
vmmvs.c 17KB
sfxwiz.c 16KB
funzip.c 16KB
time_lib.c 16KB
api.c 15KB
unshrink.c 11KB
mactime.c 10KB
macscreen.c 10KB
example.c 10KB
match.c 10KB
pathname.c 10KB
helpers.c 10KB
envargs.c 9KB
os2acl.c 9KB
getenv.c 9KB
crctab.c 9KB
stat.c 8KB
crc_i386.c 7KB
rexxhelp.c 7KB
tops20.c 7KB
unreduce.c 6KB
makesfx.c 6KB
riscos.c 6KB
globals.c 6KB
makesfx.c 6KB
macstat.c 5KB
callstub.c 5KB
apihelp.c 5KB
macdir.c 4KB
sxunzip.c 3KB
unzipstb.c 2KB
crc32.c 1KB
mkGoff.c 1KB
crypt.c 483B
unz_cli.cld 2KB
make_unz.cli 315B
zgrepapi.cmd 2KB
zip2exe.cmd 2KB
zipgrep.cmd 2KB
rexxtest.cmd 1KB
README.CMS 16KB
fileinfo.cms 10KB
INSTALL.CMS 5KB
WHATSNEW.CMS 1KB
make_unz.com 10KB
link_unz.com 6KB
makesfx.com 1KB
共 312 条
- 1
- 2
- 3
- 4
zxgcybboss
- 粉丝: 0
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论4