view move-if-change @ 109592:d5c206ebf542

Encode names of nnml groups that nnmail-get-new-mail creates in active file. 2010-07-30 Katsumi Yamaoka <yamaoka@jpl.org> * nnmail.el (nnmail-get-new-mail-1): Encode group names possibly containing non-ASCII characters in active file for nnml back end.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Fri, 30 Jul 2010 02:01:04 +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