view move-if-change @ 72250:482bf4e8cc00

(font-lock-extend-after-change-region-function): Rename from font-lock-extend-region-function. (font-lock-extend-region): Remove by inlining at call sites. (font-lock-after-change-function): Don't needlessly round up to a whole number of lines. (font-lock-extend-jit-lock-region-after-change): Be more careful about the boundary conditions and the interactions between the various ways to extend the region.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 03 Aug 2006 05:42:53 +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