view move-if-change @ 100341:8b18fa1b635f

* pmail.el (pmail-perm-variables): Don't call pmail-parse-file-inboxes. (pmail-parse-file-inboxes): Function deleted. (pmail-get-new-mail-1): Function merged into pmail-get-new-mail. (pmail-get-new-mail-2): Renamed to pmail-get-new-mail-1. (pmail-get-new-mail-filter-spam): Call rmail-spam-filter, not pmail-spam-filter. (pmail-convert-to-babyl-format): Function deleted. (pmail-nuke-pinhead-header): Function deleted. (pmail-reply): Parsing headers in mbox format. Call rmail-dont-reply-to instead of pmail-dont-reply-to.
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 10 Dec 2008 21:48:55 +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