view move-if-change @ 70482:f3cb9280be5d mh-e-doc-8_0

(MH-BOOK-HOME): Change from http://www.ics.uci.edu/~mh/book/mh to http://rand-mh.sourceforge.net/book/mh. Replace .htm suffix with .html for MH book files. (Using This Manual): Update key binding for getting relevant chapter in Info from command key. (Ranges): Fix itemx.
author Bill Wohler <wohler@newt.com>
date Sat, 06 May 2006 16:48:08 +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