view move-if-change @ 3687:719ceea8b3cb

[xemacs-hg @ 2006-11-18 18:17:53 by michaels] 2006-11-18 Mike Sperber <mike@xemacs.org> * window.c (window_pixel_height_to_char_height): Cater to the possibility that defheight may be 0.
author michaels
date Sat, 18 Nov 2006 18:17:55 +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