view move-if-change @ 82027:1350ba0c0448

* vc-cvs.el (vc-cvs-mode-line-string): Add support for tooltips for branches and new files. * vc-hooks.el (vc-default-mode-line-string): Move mouse-face and local-map handling ... (vc-mode-line): ... here. Improve handling of help-echo. * vc.el (mode-line-string): Document help-echo usage.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sun, 22 Jul 2007 19:04:11 +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