view move-if-change @ 112129:5a83a0764cb0

allout.el: (allout-back-to-current-heading): Ensure return to the visible containing topic, rather than a collapsed one. (allout-view-change-hook): Remove hook that was deprecated long ago. (allout-exposure-change-hook): Remove documentation remarks concerning removed allout-view-change-hook. (allout-flag-region): Remove invocation of and documentation remarks concerning allout-view-change-hook.
author Ken Manheimer <ken.manheimer@gmail.com>
date Thu, 06 Jan 2011 02:19:05 -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