make_vms.com 901 字节
Newer Older
M
Mark Adler 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14
$ if f$search("ioapi.h_orig") .eqs. "" then copy ioapi.h ioapi.h_orig
$ open/write zdef vmsdefs.h
$ copy sys$input: zdef
$ deck
#define unix
#define fill_zlib_filefunc64_32_def_from_filefunc32 fillzffunc64from
#define Write_Zip64EndOfCentralDirectoryLocator Write_Zip64EoDLocator
#define Write_Zip64EndOfCentralDirectoryRecord Write_Zip64EoDRecord
#define Write_EndOfCentralDirectoryRecord Write_EoDRecord
$ eod
$ close zdef
$ copy vmsdefs.h,ioapi.h_orig ioapi.h
$ cc/include=[--]/prefix=all ioapi.c
$ cc/include=[--]/prefix=all miniunz.c
M
Mark Adler 已提交
15
$ cc/include=[--]/prefix=all unzip.c
M
Mark Adler 已提交
16 17 18 19
$ cc/include=[--]/prefix=all minizip.c
$ cc/include=[--]/prefix=all zip.c
$ link miniunz,unzip,ioapi,[--]libz.olb/lib
$ link minizip,zip,ioapi,[--]libz.olb/lib
M
Mark Adler 已提交
20
$ mcr []minizip test minizip_info.txt
M
Mark Adler 已提交
21
$ mcr []miniunz -l test.zip
M
Mark Adler 已提交
22
$ rename minizip_info.txt; minizip_info.txt_old
M
Mark Adler 已提交
23 24 25
$ mcr []miniunz test.zip
$ delete test.zip;*
$exit