#!	/bin/csh -f
#
# Copyright 1993, 1994, 1995 by the Regents of the University of California.
# see the file "Copyright" in the distribution for conditions of use.
#
#
#	install a new .forward
#
if( $#argv != 1 ) then
	echo "*** invalid usage - no changes made ***"
	exit 1
endif
#
set tmp = `mktemp -pfr -d ~`
cp $1 $tmp
if( $status ) goto trouble
diff $1 $tmp
if( $status ) goto trouble
#
/bin/mv -f $tmp ~/.forward
if( $status ) goto trouble
#
exit 0
#
trouble:
echo "*** could not install changes.
if( -e $tmp ) /bin/rm $tmp
exit 1
