view move-if-change @ 51063:66dd7f2dd70a

(vc-log-mode-map, vc-maximum-comment-ring-size, vc-comment-ring) (vc-comment-ring-index, vc-last-comment-match): Move vars from vc.el. (vc-new-comment-index, vc-previous-comment, vc-next-comment) (vc-comment-search-reverse, vc-comment-search-forward) (vc-comment-to-change-log): Move funs from vc.el. (log-edit-show-files): Remove unused var `editbuf'.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 18 May 2003 02:46:56 +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