view move-if-change @ 35147:bb3753ae88ae

Doc and message fixes. (message-send-rename-function) (message-make-forward-subject-function) (message-send-mail-function, message-reply-to-function) (message-wide-reply-to-function, message-followup-to-function) (message-distribution-function, message-auto-save-directory): Fix :type.
author Dave Love <fx@gnu.org>
date Mon, 08 Jan 2001 19:39:15 +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