view move-if-change @ 3646:b6287dbce5f0

[xemacs-hg @ 2006-10-31 09:16:27 by michaels] 2006-10-28 Nix <nix@esperi.org.uk> * window-xemacs.el (window-configuration-includes-position): New. * window-xemacs.el (window-configuration-equal): Use it: window configurations with distinct positions are equal by default. * window-xemacs.el (really-set-window-configuration): Do not restore window positions unless requested.
author michaels
date Tue, 31 Oct 2006 09:16:29 +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