view move-if-change @ 58404:c491aac34318

Fixed this redisplay bug: ** Problem with cursor border around images and window-margins: The border around the image when the cursor is on the image flows into the right fringe and margin. (progn (auto-image-file-mode 1) (find-file (concat data-directory "splash.xpm")) (set-window-margins (selected-window) 25 25))
author Kim F. Storm <storm@cua.dk>
date Sun, 21 Nov 2004 15:50:08 +0000
parents 354e0c45cedf
children 14a97ab281d5
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