home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 9 Archive
/
09-Archive.zip
/
unzip540.zip
/
tandem
/
make
< prev
next >
Wrap
Text File
|
1998-01-29
|
1KB
|
65 lines
?tacl routine
#FRAME
load /keep 1/ commacs
#PUSH file prev options OK model unzip accel
#PUSH #DEFAULTS
load /keep 1/ macros
#SET OK -1
#SET options [#REST]
[#IF NOT [#EMPTYV options] |THEN| #CHARINSV options 1 ","]
#OUTPUT Compiler Options: [options]
[#IF [#MATCH *WIDE* [options]]
|THEN|
#SET model WIDE
#SET unzip UNZIPW
|ELSE|
#SET model LARGE
#SET unzip UNZIPL
]
#SET accel UNZIP
#OUTPUT Making UNZIP using [model] memory model
#SET file [#FILENAMES /MAXIMUM 1/ *C]
[#loop |while| NOT [#EMPTYV file]
|do|
#SETV prev file
CC [file] $T.#UNZIP [options]
[#IF [tacl^completioncode] > 1 |THEN| #set OK 0 ]
#SET file [#FILENAMES /MAXIMUM 1, PREVIOUS [prev]/ *C]
]
[#IF OK |THEN|
BBUNZIPLIB
[#IF [tacl^completioncode] > 0 |THEN| #SET OK 0]
]
#PUSH #PROCESSFILESECURITY
VOLUME ,"NUNU"
[#IF OK |THEN|
BBUNZIP [unzip] [model]
[#IF [tacl^completioncode] > 0 |THEN| #SET OK 0]
]
[#IF OK |THEN|
secure^file [accel] "UUUU" SUPER.DAVES
accel^file [unzip] [accel]
[#IF [tacl^completioncode] > 0 |THEN| #SET OK 0]
]
[#IF OK
|THEN| #OUTPUT Successfully produced Accelerated Object [accel]
secure^file [accel] "UUUU" SUPER.DAVES
|ELSE| #OUTPUT Failed to produce Accelerated Object [accel]
]
#OUTPUT Finished
#UNFRAME