home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 9 Archive
/
09-Archive.zip
/
wuz131.zip
/
Post-WUZ.Tpl
< prev
next >
Wrap
Text File
|
1994-04-17
|
1KB
|
56 lines
/* Post processing for WUZ.CMD */
/* (c) Copyright 1994 Scott Maxwell. */
FinalCommand=''
/* ---- You can insert any commands you like between these two lines ---- */
/* ---- They will be preserved if you reinstall WUZ (a new version?) ---- */
parse arg '"' WuzWhat '"' haveFresh haveUpdate
haveFresh = Strip(haveFresh)
if WuzWhat = '' then do
Say "Post-WUZ is only meant to be used from WUZ.CMD"
exit(0)
end
if WuzWhat \= 0 then
call 'wuz' '"'WuzWhat'" here'
call 'Open-Dir'
is4OS2 = Check4OS2()
say '0a'x"Type 'ZCLR' to remove the files and subdirectory."
if is4OS2 = 1 then do
say "Hit <Alt-X> or type 'ZCLR -x' to remove files and close command line."
'@alias @Alt-x=zclr -x^r'
end
else
say "Type 'ZCLR -x' to also close the command line"
if haveUpdate \= '' then do
if is4OS2 = 1 then do
say "Type ZUPDATE or <Alt-u> to remove deleted files and add new files to archive."
'@alias @Alt-u=zupdate^r'
end
else
say "Type ZUPDATE to remove deleted files and add new files to the archive."
end
if haveFresh \= '' then do
if is4OS2 = 1 then do
say "Type ZFRESH or <Alt-f> to update existing files in the archive."
'@alias @Alt-f=zfresh^r'
end
else
say "Type ZFRESH to update existing files in the archive."
end
interpret FinalCommand
exit
Check4OS2: procedure
'@set is4os2=%_4ver'
return DATATYPE(VALUE(is4os2,,OS2ENVIRONMENT),'N')