view move-if-change @ 612:ff0d9e7facba

[xemacs-hg @ 2001-06-09 09:02:03 by michaels] 2001-06-08 Mike Sperber <mike@xemacs.org> * files.el (save-some-buffers-1): Don't zap the help window right after `map-y-or-n-p' has popped it up.
author michaels
date Sat, 09 Jun 2001 09:02:04 +0000
parents 376386a54a3c
children
line wrap: on
line source

#!/bin/sh
if
test -r $2
then
if
cmp $1 $2 > /dev/null
then
echo $2 is unchanged
rm -f $1
else
mv -f $1 $2
fi
else
mv -f $1 $2
fi