view move-if-change @ 110663:c05f92a4d834

Fix documentation of VC status indicator in mode line. lisp/vc/vc-hooks.el (vc-default-mode-line-string): Doc fix. doc/emacs/maintaining.texi (VC Mode Line): Mention all the possible VC status indicator characters.
author Eli Zaretskii <eliz@gnu.org>
date Thu, 30 Sep 2010 14:44:25 +0200
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