view move-if-change @ 102076:9604af41f8f4

Update for mbox format. Various small fixes, as well as the following. (Out of Rmail): Node deleted. (Rmail): Update menu. (Rmail Files): Comment out set-rmail-inbox-list. Document rmail-inbox-list instead. (Rmail Output): Substantial changes since C-o is now rmail-output-as-seen and o is rmail-output. (Rmail Attributes): Delete `stored', add `retried'. (Rmail Display): Editing headers works in all cases.
author Richard M. Stallman <rms@gnu.org>
date Tue, 17 Feb 2009 18:15:59 +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