view move-if-change @ 2888:469ce4fa0ade

[xemacs-hg @ 2005-08-06 09:41:58 by michaels] 2005-08-06 Mike Sperber <mike@xemacs.org> * window-xemacs.el (really-set-window-configuration): Only set the frame top and left if they've changed.
author michaels
date Sat, 06 Aug 2005 09:41:59 +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