home *** CD-ROM | disk | FTP | other *** search
- /* 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 */