view move-if-change @ 50988:f4923c2899b6

(xemacsp): Remove. Replace with (featurep 'xemacs). (ispell-graphic-p): Inline and then remove. (toplevel): Get rid of unnecessary loop. (ispell-parse-output, ispell-complete-word): Replace (substring s 0 1) with a call to aref. (ispell-get-line): Remove unused arg `reg-end'. (ispell-region): Update corresponding call.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 14 May 2003 01:54:28 +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