view move-if-change @ 73955:bb3a9d42ece7

(Incorporating Mail): Use output of "mhparam Path" to set MAILDIR. (Reading Mail): Document the customization of read-mail-command for MH-E. (Viewing Attachments): Document mm-discouraged-alternatives. (Tool Bar): Fix Texinfo for mh-xemacs-use-tool-bar-flag. (Junk): Add more information about the settings of mh-junk-background in a program. Add /usr/bin/mh to PATH in examples.
author Bill Wohler <wohler@newt.com>
date Mon, 13 Nov 2006 01:59:54 +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