view move-if-change @ 3696:ec0171167c5d

[xemacs-hg @ 2006-11-23 18:38:50 by michaels] 2006-11-18 Mike Sperber <mike@xemacs.org> * redisplay-x.c (separate_textual_runs): Don't try to call ichar_to_unicode on non-MULE.
author michaels
date Thu, 23 Nov 2006 18:38:52 +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