view move-if-change @ 55900:d8a2b8a11274

2004-06-03 Karl Fogel <kfogel@red-bean.com> * vc-svn.el (vc-svn-checkin): Use 'nconc' instead of 'list*', because the latter is a CL-ism. This fixes the bug reported by Shawn Boyette <mdxi@collapsar.net> in http://lists.gnu.org/archive/html/emacs-devel/2004-05/msg00442.html.
author Karl Fogel <kfogel@red-bean.com>
date Fri, 04 Jun 2004 04:37: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