view move-if-change @ 69427:656079a407fa

(Preface, More About MH-E, Options, HTML, Folders) (Composing, Scan Line Formats): Fix @refs. (Getting Started): Define MH profile and MH profile components. (Incorporating Mail, Reading Mail, Viewing, Printing) (Sending Mail, Forwarding, Editing Drafts, Inserting Letter) (Signature, Aliases, Scan Line Formats): Use @code instead of @samp for string constants. (Tool Bar): Remove spurious quote. (Junk): Use ``...'' instead of "...".
author Bill Wohler <wohler@newt.com>
date Sun, 12 Mar 2006 01:06:59 +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