view move-if-change @ 112044:38481fb0a538

(allout-auto-fill): Do not infinitely recurse - use do-auto-fill if everything points back to allout-auto-fill. (allout-mode-deactivate-hook): Declare obsolete, in favor of standard-formed minor-mode deactivate hook, allout-mode-off-hook.
author Ken Manheimer <ken.manheimer@gmail.com>
date Sat, 01 Jan 2011 19:35:15 -0500
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