view move-if-change @ 102799:78c64d8d9381

* help.texi (Accessing Documentation): Update example to use help-setup-xref and with-help-window. (Help Functions): Remove print-help-return-message, which is semi-obsolete due to with-help-window. Document help-buffer and help-setup-xref.
author Chong Yidong <cyd@stupidchicken.com>
date Mon, 30 Mar 2009 21:57:07 +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