view move-if-change @ 79277:d9c9787ef622

Merge from gnus--rel--5.10 Patches applied: * gnus--rel--5.10 (patch 263-265) - Merge from emacs--rel--22 - Update from CVS 2007-10-27 Emanuele Giaquinta <e.giaquinta@glauco.it> (tiny change) * man/gnus-faq.texi ([5.12]): Remove reference to discontinued service. 2007-10-27 Reiner Steib <Reiner.Steib@gmx.de> * man/gnus.texi (Troubleshooting): Adjust Gnus version number. Revision: emacs@sv.gnu.org/emacs--rel--22--patch-140
author Miles Bader <miles@gnu.org>
date Tue, 30 Oct 2007 23:31:05 +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