📄 install
字号:
When this option is set, UnZip behaves exactly like other programs; file timestamps on NTFS partitions are created so that their >current< local time representation displayed by directory listings (cmd.exe "dir" command or Windows Explorer listings) is the same as shown by UnZip's listing. But the actual UTC timestamp values stored in the NTFS file attributes vary depending on whether extraction is done at summer or winter time. This option is not recommended because it sacrifies the timestamp comparison checks when extracting or modifying archives in "update only newer" mode. However, for environments where consistency of >displayed< dates of files extracted to NTFS vs. FAT disks is considered more important than correctly working update/freshen tasks of Zip&UnZip, this option may be used. >> DO NOT DISTRIBUTE OR PUBLISH executables that were compiled with this option! << NOTIMESTAMP This option disables the -T option, which basically does exactly what Zip's -go options do (i.e., set the timestamp of the zipfile to that of the newest file in the archive without rewriting the archive). Unlike Zip, however, UnZip supports wildcard specifications for the archive name; for example, "unzip -T *.zip" will set the dates of all zipfiles in the current directory. (UnZip's option is also much faster.) DATE_FORMAT=DF_DMY or DF_MDY or DF_YMD This option controls the order in which date components are printed in listings: day-month-year or month-day-year or year-month-day. For DOS, FlexOS, OS2, Theos and Win32, the format is automatically obtained from the operating system; most others default to DF_MDY. DATE_SEPCHAR='-' or '.' or '/' etc. This option controls the character that separates the date components shown in (non-ZipInfo-mode) listings. The Win32 port obtains the separator automatically from the operating system's locale settings; all others default to '-'. ACORN_FTYPE_NFS (needs support for long filenames with embedded commas) This option enables a -F option that instructs UnZip to interpret the filetype information extracted from Acorn RiscOS extra field blocks. The filetype IDs are translated into "NFS filetype extensions" and appended to the names of the extracted files. This feature facilitates maintenance of Unix-based NFS volumes that are exported to Acorn RiscOS systems. QLZIP (Unix only) Add some support for QDOS extra fields. This option enables Unix UnZip to append "datalen info" to QDOS exec type files in the same format as used by QDOS cross-compilers on Unix or the qltools v2.2(+). UNIXBACKUP (Unix only) This option enables a -B option that instructs UnZip to rename files that would normally be overwritten. The renamed files are given a tilde suffix (`~'). Note that previously renamed files may be over- written without notice, even if the -n option is given. OS2_EAS List the sizes of OS/2 EAs and ACLs for each file as two extra columns in "unzip -l" output. This is primarily useful for OS/2 systems, but because zipfiles are portable, OS2_EAS can be defined for any system. (May be extended someday to show sizes of Mac resource forks, RISCOS and VMS file info, etc.) DELETE_IF_FULL (anybody with unlink() function) If a write error is encountered (most likely due to a full disk), enabling this option will cause the incomplete file to be deleted instead of closed normally. This is particularly useful for the Windows CE port, which must generally contend with extremely limited resources. ASM_CRC (Amiga/Aztec C; many x86 systems: DOS, OS/2, Win32, Unix) Use an assembler routine to calculate the CRC for each file (speed). ASM_INFLATECODES (Amiga/Aztec C only, for now) Use an assembler version of inflate_codes() for speed. OLD_EXDIR No longer supported. SFX_EXDIR Enable the "-d <extract_dir>" option for UnZipSFX. This is now enabled by default (since UnZip 5.5) to facilitate use with automated installation scripts and the like. For disabling this feature, see the NO_SFX_EXDIR option. NO_SFX_EXDIR Disables the "-d <extract_dir>" option for UnZipSFX to generate the smallest possible executable stub. (Prior to the UnZip 5.5 release, this was the default.) CHEAP_SFX_AUTORUN Enable a simple "run command after extraction" feature for the (command line) UnZipSFX stub. This feature is currently incompatible with the "-d <extract_dir>" command line option, therefore CHEAP_SFX_AUTORUN implicitely sets the NO_SFX_EXDIR option. NO_ZIPINFO Compile without ZipInfo mode (-Z) enabled; makes a smaller executable because many text strings are left out. Automatically enabled for some small-model compiles under MS-DOS and OS/2, so ordinarily there is no need to specify this explicitly. (Note that even with this defined, the resulting executable may still be too big to extract some zipfiles correctly, if compiled with the small memory model.) USE_DEFLATE64 (default for UnZip and fUnZip) NO_DEFLATE64 (default for UnZipSFX stub) The "deflate64" algorithm from PKZIP 4.0 (or newer) is an enhanced variant of the deflate algorithm that achieves slightly better compression ratios on highly redundant data. Normally, UnZip should be compiled with support for this compression algorithm enabled. However, this results in significantly larger memory requirements to run the program. For 16-bit executables (DOS and OS/2), the special memory management to support the 64k history buffer results in a slight performance (= speed) penalty. And for the SFX stub, "deflate64" support might be unnessessary as long as the Info-ZIP Zip utility does not support it (quite likely, this will never get implemented). So, the NO_DEFLATE64 option is provided to allow exclusion of the deflate64 support. MULT_VOLUME (experimental for 5.5x, do NOT use in production versions!) NO_MULT_VOLUME (default) The symbol MULT_VOLUME is used to flag code portions needed for support of multi-volume archives. For now, this flag MUST NOT be used to compile a production versions of UnZip. This flag has been introduced to allow integration of experimental code for multi-volume support in the master source tree. This feature will become a default option in the future 6.0 release of UnZip. LZW_CLEAN USE_UNSHRINK (now default, as of January 2005) The "shrinking" algorithm from PKZIP 1.0 is an LZW variant. Unisys patented the Lempel-Ziv-Welch algorithm in 1985 and has publicly claimed that decompression is covered by it. (IBM also patented the same thing in a filing 3 weeks prior to Unisys's.) In 2004, the Unisys and IBM patents expired worldwide, so unshrinking is now enabled again by default. If you do not wish to include the LZW method, you may still disable it by defining LZW_CLEAN. (Unshrinking was used by PKZIP 1.0 and 1.1, and Zip 1.0 and 1.1. All newer archives use only the deflation method.) COPYRIGHT_CLEAN (now default) USE_SMITH_CODE The last chunk of code in UnZip that was blatantly derived from Sam Smith's unzip 2.0 (as in, "substantially similar") is in unreduce.c. Since reducing was only used by very early PKZIP beta versions (0.9x), support for it is now omitted by default (COPYRIGHT_CLEAN). To in- clude unreducing capability, define USE_SMITH_CODE and replace the stub unreduce.c source file by the separatly distributed full source code module. Note that this subjects UnZip to any and all restrictions in Smith's copyright; see the UnZip COPYING.OLD file for details. USE_CRYPT Enable decryption support for all binaries. The default setting is to disable decryption support for the SFX stub to keep its size as small as possible. For other binaries of the UnZip distribution, decryption support is enabled by default. NO_CRYPT Disable decryption support for all binaries. PASSWD_FROM_STDIN (with full crypt sources only; Unix, VMS only) Used to allow the password on encrypted files to be read from stdin rather than the default stderr. This was useful for those who wished to automate the testing or decoding of encrypted archives (say, in a shell script via ``echo "password" | unzip -tq archive''), but as of version 5.3, UnZip has a -P option for passing a password directly to the program. PASSWD_FROM_STDIN will therefore probably be phased out in future versions. Note that the same security warnings given in the description of the -P option apply here as well. DEBUG Used for debugging purposes; enables Trace() statements. Generally it's best to compile only one or two modules this way. DEBUG_TIME Used for debugging the timezone code in fileio.c; enables TTrace() statements. This code is only used for the freshen/update options (-f and -u), and non-Unix compilers often get it wrong.(4) If you regularly compile new versions of UnZip and always want the same non-standard option(s), you may wish to add it (them) to the LOCAL_UNZIP environment variable (assuming it's supported in your makefile). Under MS-DOS, for example, add this to AUTOEXEC.BAT: set LOCAL_UNZIP=-DDOSWILD -DDATE_FORMAT=DF_DMY You can also use the variable to hold special compiler options (e.g., -FPi87 for Microsoft C, if the x87 libraries are the only ones on your disk and they follow Microsoft's default naming conventions; MSC also supports the CL environment variable, however).(5) Run the make utility on your chosen makefile: Unix For most systems it's possible to invoke the makefile in place, at the possible cost of an ignorable warning; do "make -f unix/Makefile list" to get a list of possible system targets, and then "make -f unix/Makefile target" for your chosen target. The "generic" target works for most systems, but if it fails with a message about ftime() unresolved or timezone redefined, do "make clean", "make help", and then either "make generic2" or "make generic3" as instructed. If all else fails, read the makefile itself; it contains numerous comments. (One of these days we'll make a configure script that automates this procedure better.) VMS (OpenVMS): For a one-time build of the default UnZip, simply run the supplied command file MAKE_UNZ.COM. To use either DEC C on an Alpha or the default compiler (DEC C if available, else VAX C) on a VAX, type "@make_unz" (after copying make_unz.com into the current directory; otherwise do "@[.vms]make_unz" to invoke it in place).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -