view move-if-change @ 103247:0eb3cdddefb2

* mail/rmail.el (rmail-expunge-confirmed): Return nil if nothing to do. Don't call rmail-modify-format here. (rmail-expunge): Call it here after expunge is confirmed. (rmail-confirm-expunge): Doc fix. Mark as risky. (rmail-convert-babyl-to-mbox): Call rmail-modify-format. (rmail-set-attribute): Call rmail-dont-modify-format only for `unseen'. For other attributes, call `rmail-modify-format', and propagate the modified flag to rmail-buffer.
author Richard M. Stallman <rms@gnu.org>
date Mon, 18 May 2009 16:26:57 +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