view move-if-change @ 51884:58bf3c3670d8

(apropos-show-scores): Make it customizable. Document new meaning. (apropos): Compute scores from symbols. (apropos-print): Don't sort by scores if apropos-show-scores is nil.
author Richard M. Stallman <rms@gnu.org>
date Sat, 12 Jul 2003 21:57:50 +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