view move-if-change @ 56044:7aad97855e39

(Info-goto-node): Add autoload. (Info-toc): Add substring-no-properties on Info file name. (Info-mode, info, Info-toc, Info-mode-menu): Doc fix. (Info-mode-map): Bind L to Info-history, T to Info-toc.
author Juri Linkov <juri@jurta.org>
date Sat, 12 Jun 2004 05:54:43 +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