home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
rpvcs.zip
/
UNLOCK.REX
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-01-14
|
778b
|
34 lines
/* Unlock.rex - PVCS logfile Unlock
Customizations necessary:
1. Change pvcsUnlock alias to point to the VCS executable.
*/
/* -------------------------- Alias list ----------------------------*/
pvcsUnlock = 'e:\pvcs\vcs -u -Xeerr -Xooutput'
/* ---------------------------- Begin ------------------------------ */
's_prompt "Logfile to Unlock?", logfile'
cmd = pvcsUnlock logfile
cmd
/* Scan for the last line of the ERR file. */
do while(lines(err))
lastline = linein(err)
end
/* Parse this last line. */
parse upper var lastline w1 w2 w3 w4 w5 wr
/* Depending on field 5 of the line, yields the result of the unlock. */
if (w5 = 'NO') then
's_msg "Already unlocked",,,resp'
else
's_msg "Unlocked",,,resp'
exit
/* fini */