view move-if-change @ 108905:68c7ddc1af16

Synch with Gnus trunk. 2010-06-07 Teodor Zlatanov <tzz@lifelogs.com> * gnus.texi (Interactive): Explain effect of gnus-expert-user better. 2010-06-07 Teemu Likonen <tlikonen@iki.fi> (tiny change) * gnus-agent.el (gnus-agent-expire-unagentized-dirs): Don't ask about deleting unused directories when gnus-expert-user is t.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Mon, 07 Jun 2010 23:00:42 +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