view move-if-change @ 83106:8f4a3987f4a8

Merged in changes from CVS trunk. Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-226 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-227 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-228 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-229 Remove TeX output files from the archive git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-146
author Karoly Lorentey <lorentey@elte.hu>
date Mon, 19 Apr 2004 08:37:31 +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