view move-if-change @ 1126:bcb5d65d0d94

[xemacs-hg @ 2002-11-28 12:34:43 by michaels] 2002-11-28 Mike Sperber <mike@xemacs.org> * dialog.el (make-dialog-box): `set-frame-pixel-size' -> `set-frame-displayable-pixel-size,' following the `frame-pixel-xxx' reorganization in src/frame.c.
author michaels
date Thu, 28 Nov 2002 12:34:44 +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