view move-if-change @ 83262:92c8be21e2c3

Merged from miles@gnu.org--gnu-2005 (patch 31-33, 129-141) Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-129 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-130 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-131 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-132 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-133 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-134 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-135 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-136 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-137 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-138 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-139 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-140 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-141 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-31 Merge from emacs--cvs-trunk--0 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-32 Merge from emacs--cvs-trunk--0 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-33 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-302
author Karoly Lorentey <lorentey@elte.hu>
date Mon, 28 Feb 2005 15:15:44 +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