head     1.4;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


1.4
date     89.08.29.09.21.55;  author jwh;  state Exp;
branches ;
next     1.3;

1.3
date     89.08.28.15.55.30;  author dew;  state Exp;
branches ;
next     1.2;

1.2
date     89.01.11.12.51.03;  author dew;  state Exp;
branches ;
next     1.1;

1.1
date     89.01.04.16.39.25;  author dew;  state Exp;
branches ;
next     ;


desc
@Updates rcs files with a new revision number.
@


1.4
log
@Fixed version number problem.
@
text
@# 10/03/88 DEW:modified to update the revision log.

newcifile=newciupdates # this must be the same as newci
flagfile=/src/paws/src/turninprogress  # this must be the same as newci
				       # and rcs2pws
versionfile=revlog3.23
admpath=/src/paws/adm
date=`date`
month=`expr substr "$date" 5 3`
day=`expr substr "$date" 9 2 | tr ' ' 0`
logfile=/src/paws/log/newrev.$month$day

srcdir=/src/paws/src
if [ "$LOGNAME" = root ]; then
	echo DO NOT RUN ME AS ROOT	
	exit 1
fi

doclean=1
if [ $# -ge 1 ]
then
	if [ $1 = nocheck ]
	then
		doclean=0
	fi
fi

if [ $doclean -eq 1 ]
then
	chkrcsclean
	if [ $? -eq 1 ]
	then
		echo chkrcsclean failure
		exit 1
	fi
fi

echo 'Bring all paws RCS files up to the same (higher) rev.'
revision=`rlog -h /src/paws/adm/RCS/$versionfile,v |grep "^head" |cut -d" " -f2-`
echo "The last RCS revision number was: $revision"
echo 'New RCS revision number? \c'
read revision
if [ "$revision" = "" ]; then
	echo DO NOT RUN ME IN BACKGROUND
	exit 1
fi
echo 'PAWS version at this level (e.g. 3.2h)? \c'
read version
trap '' 1
(
for i in $srcdir/pclib/[a-z]* $srcdir/pclib/include/[a-z]* $srcdir/*; do
  cd $i
  for j in $i/RCS/*,v; do
    base=`basename $j ,v`
    co -l $base 
    ci -f -r$revision $base <<!
Automatic bump of revision number for PWS version $version
!
  done
done
cd $admpath
mv $newcifile $versionfile
cat $versionfile | lp
rcs -l $versionfile
ci -r$revision $versionfile <<!
History of rcs updates made in the PWS version immediately preceeding $version
!

rm -f $flagfile


echo "******************"
echo "* allnewrev done *"
echo "******************"
echo "Check $logfile for errors."
) >$logfile 2>&1 &
@


1.3
log
@Updated log message and revlog to revlog3.23.
DEW
@
text
@d39 1
a39 1
revision=`rlog -h /src/paws/adm/RCS/revlog3.22,v |grep "^head" |cut -d" " -f2-`
@


1.2
log
@*** empty log message ***
@
text
@d6 1
a6 1
versionfile=revlog3.22
d8 4
a48 2
echo 'output file for logging? \c'
read logfile
d71 1
d75 1
@


1.1
log
@Initial revision
@
text
@d15 2
a16 2
chkrcsclean
if [ $? -eq 1 ]
d18 4
a21 1
	exit 1
d24 10
d35 3
a37 1
echo 'New RCS revision number (e.g. 3.1)? \c'
@
