#sccs	"@(#)fndetc/convert:saveoldver	1.2"

#
#	FILE:  saveoldver
#
#	This program copies the old version of a file to the name
#	of the new file appended by '-old'.
#
#	   ie:  /etc/file  -->  /etc/file-old
#

if [ $# -lt 2 ]
then
	echo "usage:  saveoldver {old file} {new file}"
	exit
fi

if [ $# -eq 3 ]
then	VERBOSE=$3
else	VERBOSE=""
fi

OLDFILE=$1
NEWFILE=$2

#	Copy the old version to the file -old.

cp ${OLDFILE} ${NEWFILE}-old
echo "$NEWFILE" >> $SAVELIST

#	Do listing update as necessary.

if [ "$VERBOSE" ]
then 
	echo "old Release file moved to ${NEWFILE}-old."
	echo
fi

