Wed Aug 28 00:06:00 EDT 1996 To: SMGR Users Bulletin: 16 From: Neal Rhodes /MNOP Ltd Subject: Resetting Revisions of RCS files. There exists a program not on the SMGR menu named "resetrev.p". This can be run when you suspect that the SMGR database is no longer in sync with the underlying master file. Up to now, resetrev.p only functioned with SCCS. By making the following change to ./bin/ldstsrev.sh, you can make it work with RCS as well. (At least if you are using the Rcs Rlog binaries provided my MNOP Ltd) # /* END_OF_RESERVED_STS_DATA */ # Data looks like ======================================================== #Rev: 1.25 Who: neal Date: 93/03/23 08:58:24 +00062 -00040 #added PROFORMPATH environment variable on open, moved nag messages #to be just begin and end, not each page. # #Rev: 1.24 Who: neal Date: 93/03/18 10:25:09 +00002 -00000 #adds a carriage return to each text line. Corrects the letterhead #mode of operation. # #Rev: 1.23 Who: neal Date: 93/03/18 08:12:17 +00038 -00014 #added function prototypes and returns to make QuickC compiler happier. # #Rev: 1.22 Who: neal Date: 93/03/17 20:48:15 +00008 -00007 #made all stderr output conditional on -x flag # #Rev: 1.1 Who: neal Date: 92/09/19 20:49:10 +00188 -00000 #date and time created 92/09/19 20:49:10 by neal # # ======================================================================= CAT=$1 FILE=$2 STATE=line_one SCDIR=$SCCSHOME/$CAT/ #Uncomment this line if you use SCCS... #prs -e -d"Rev: :I:\t Who: :P:\t Date: :D: :T: +:Li: -:Ld:\n:C:" ${SCDIR}s.$FILE > /tmp/review.out #Uncomment this line if you use RCS... rlog -Or ${SCDIR}$FILE,v > /tmp/review.out while true do case $STATE in line_one) if read BEGIN REV JUNK AUTHOR JUNK DATE TIME ADDED DELETED then if [ "$BEGIN" = "Rev:" ] then OIFS=$IFS IFS="/" set $DATE DATE="$2/$3/$1" IFS=$OIFS STATE=descr BIG_DESCR="" else : # not yet fi else break fi ;; descr) read DESCR if [ "$DESCR" ] then BIG_DESCR="$BIG_DESCR $DESCR " else echo "$CAT $FILE $REV $DATE $TIME $AUTHOR $ADDED $DELETED \"$BIG_DESCR\" \" \" \" \" \" \" \" \" \" \" \" \" \" \" \" \" " BIG_DESCR="" STATE=line_one fi ;; esac done < /tmp/review.out