view move-if-change @ 102017:297e7d761b44

(rmail-default-rmail-file): Remove declaration of deleted variable (only used in gnus-util, which declares it anyway). (rmail-output-to-rmail-file): Move autoload to gnus-art, the only place that uses it. (rmail-insert-rmail-file-header): Remove autoload of deleted function, only used in gnus-util, which autoloads it itself. (rmail-update-summary): Fix autoload.
author Glenn Morris <rgm@gnu.org>
date Sat, 14 Feb 2009 03:35:37 +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