view move-if-change @ 66827:5163ae9b5c75

(Help): Fix C-h a entry. Add C-h d entry. (Help Summary): Add C-h d and C-h e. (Apropos): Clarify that all apropos commands may search for either list of words or a regexp. Add C-h d for apropos-documentation. Describe apropos-documentation-sort-by-scores user option.
author Kim F. Storm <storm@cua.dk>
date Sat, 12 Nov 2005 00:58:46 +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