view move-if-change @ 74090:e30f926d61f4

Merge from gnus--rel--5.10 Patches applied: * gnus--rel--5.10 (patch 167) - Update from CVS 2006-11-18 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> * lisp/gnus/mm-uu.el (mm-uu-pgp-signed-extract-1): Make last fix more thorough and comment it. * lisp/gnus/nnslashdot.el (nnslashdot-retrieve-headers-1): Update regexp. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-518
author Miles Bader <miles@gnu.org>
date Mon, 20 Nov 2006 02:43:10 +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