view move-if-change @ 79356:8d26a192ba18

Merge from gnus--rel--5.10 Patches applied: * gnus--rel--5.10 (patch 269) - Update from CVS 2007-11-03 Reiner Steib <Reiner.Steib@gmx.de> * lisp/gnus/gnus-sum.el (gnus-summary-highlight): Mark as risky local variable. 2007-11-04 Reiner Steib <Reiner.Steib@gmx.de> * man/gnus.texi, man/gnus-faq.texi, man/message.texi: Bump version to 5.10.9. Revision: emacs@sv.gnu.org/emacs--rel--22--patch-147
author Miles Bader <miles@gnu.org>
date Fri, 09 Nov 2007 09:48:56 +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