view move-if-change @ 48118:40e2242be50f

(Info-hide-note-references): nil value now does no reformatting at all. New choice 'tag reformats tag but shows the section reference. (Info-fontify-node): Use it.
author Kim F. Storm <storm@cua.dk>
date Fri, 01 Nov 2002 22:48:12 +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