view move-if-change @ 111972:3b8b4f28c758

gnus-agent.el: Indent. gnus.texi: Fix a couple nnir -> @code{nnir} things. nnimap.el (nnimap-retrieve-group-data-early): Fix the syntax of the QRESYNC command by deleting a superfluous space which broke Cyrus servers. This change will break other servers that are buggy the other way around. gnus.texi (The hyrex Engine): Say that this engine as obsolete.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Wed, 15 Dec 2010 22:24:36 +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