view move-if-change @ 71556:31835ba46d29

(diff-find-file-name): Obey cvs-pcl-cvs-dirchange-re. (diff-unified->context, diff-context->unified) (diff-reverse-direction): Make sure the end marker stays at the end. (diff-mode): Add the keymap table at the end of docstring. Use lexical-let rather than constructing a closure manually.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 02 Jul 2006 14:29:28 +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