view move-if-change @ 52388:b851ebbed6d8

* pcvs.el (cvs-do-removal): Use = instead of eq to check the numbre of files. Bind the numbre of files to a a local variable. Suggestd by Kevin Rodgers <ihs_4664@yahoo.com>.
author Masatake YAMATO <jet@gyve.org>
date Sun, 31 Aug 2003 02:11:21 +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