view move-if-change @ 107975:7d805250c222

Synch with Gnus trunk: 2010-04-17 Teodor Zlatanov <tzz@lifelogs.com> * gnus.texi (Gnus Versions, Oort Gnus): Mention the Git repo instead of the CVS repo. Put the Git repo in the news section. * gnus-coding.texi (Gnus Maintainance Guide): Fixed title typo. Removed some mentions of CVS. Mention the new Git repo. 2010-04-17 Teodor Zlatanov <tzz@lifelogs.com> * smime.el: Don't mention CVS. * nnrss.el (nnrss-fetch): Don't mention CVS. * nnir.el: Don't mention CVS.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Sun, 18 Apr 2010 23:24:22 +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