5c5
< # $Id: rcsfreeze.sh,v 4.4 1991/04/21 11:58:24 eggert Exp $
---
> # $Id: rcsfreeze.sh,v 4.6 1993/11/03 17:42:27 eggert Exp $
28c28
< PATH=/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:/usr/ucb:$PATH
---
> PATH=/usr/local/bin:/bin:/usr/bin:/usr/ucb:$PATH
34,36c34,36
< if [ -d RCS ]
< then RCSDIR=RCS/
< else RCSDIR=
---
> if test -d RCS
> then RCSDIR=RCS/ EXT=
> else RCSDIR= EXT=,v
43c43
< [ -r $VERSIONFILE ] || { echo 0 >$VERSIONFILE && >>$LOGFILE; } || exit
---
> test -r $VERSIONFILE || { echo 0 >$VERSIONFILE && >>$LOGFILE; } || exit
82,83c82
< rm -f $TMPLOG || exit
< trap 1 2 13 15
---
> rm -f $TMPLOG &&
86c85
< # to each rcs file. Take the most recent version of the main trunk.
---
> # to each rcs file. Take the most recent version on the default branch.
88,90c87,90
< status=
<
< for FILE in ${RCSDIR}*
---
> # If there are any .*,v files, throw them in too.
> # But ignore RCS/.* files that do not end in ,v.
> DOTFILES=
> for DOTFILE in ${RCSDIR}.*,v
92,97c92,96
< # get the revision number of the most recent revision
< HEAD=`rlog -h $FILE` &&
< REV=`echo "$HEAD" | sed -n 's/^head:[ ]*//p'` &&
< # assign symbolic name to it.
< echo >&2 "rcsfreeze: $REV $FILE" &&
< rcs -q -n$SYMREVNAME:$REV $FILE || status=$?
---
> if test -f "$DOTFILE"
> then
> DOTFILES="${RCSDIR}.*,v"
> break
> fi
100c99
< exit $status
---
> exec rcs -q -n$SYMREVNAME: ${RCSDIR}*$EXT $DOTFILES
< # $Id: rcsfreeze.sh,v 4.4 1991/04/21 11:58:24 eggert Exp $
---
> # $Id: rcsfreeze.sh,v 4.6 1993/11/03 17:42:27 eggert Exp $
28c28
< PATH=/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:/usr/ucb:$PATH
---
> PATH=/usr/local/bin:/bin:/usr/bin:/usr/ucb:$PATH
34,36c34,36
< if [ -d RCS ]
< then RCSDIR=RCS/
< else RCSDIR=
---
> if test -d RCS
> then RCSDIR=RCS/ EXT=
> else RCSDIR= EXT=,v
43c43
< [ -r $VERSIONFILE ] || { echo 0 >$VERSIONFILE && >>$LOGFILE; } || exit
---
> test -r $VERSIONFILE || { echo 0 >$VERSIONFILE && >>$LOGFILE; } || exit
82,83c82
< rm -f $TMPLOG || exit
< trap 1 2 13 15
---
> rm -f $TMPLOG &&
86c85
< # to each rcs file. Take the most recent version of the main trunk.
---
> # to each rcs file. Take the most recent version on the default branch.
88,90c87,90
< status=
<
< for FILE in ${RCSDIR}*
---
> # If there are any .*,v files, throw them in too.
> # But ignore RCS/.* files that do not end in ,v.
> DOTFILES=
> for DOTFILE in ${RCSDIR}.*,v
92,97c92,96
< # get the revision number of the most recent revision
< HEAD=`rlog -h $FILE` &&
< REV=`echo "$HEAD" | sed -n 's/^head:[ ]*//p'` &&
< # assign symbolic name to it.
< echo >&2 "rcsfreeze: $REV $FILE" &&
< rcs -q -n$SYMREVNAME:$REV $FILE || status=$?
---
> if test -f "$DOTFILE"
> then
> DOTFILES="${RCSDIR}.*,v"
> break
> fi
100c99
< exit $status
---
> exec rcs -q -n$SYMREVNAME: ${RCSDIR}*$EXT $DOTFILES