view move-if-change @ 47211:3a7c7e0c12f7

(cvs-run-process): Use a pty rather than a pipe to work around the cvs/ssh/libc bug. (cvs-update-header): Understand `cvs admin -m<rev>:<msg>' syntax. (defun-cvs-mode): Use the new `declare' thingy. (cvs-edit-log-text-at-point, cvs-mode-edit-log, cvs-do-edit-log) (cvs-edit-log-minor-wrap, cvs-edit-log-filelist): New funs. (cvs-mode-undo): Use `cvs add' for (CONFLICT. REMOVED).
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 03 Sep 2002 01:40:29 +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