view move-if-change @ 59106:6ae984fd783d

(single_display_spec_string_p): Renamed from single_display_prop_string_p. (single_display_spec_intangible_p): Renamed from single_display_prop_intangible_p. (handle_single_display_spec): Renamed from handle_single_display_prop. Rewritten to be easier to understand.
author Richard M. Stallman <rms@gnu.org>
date Mon, 27 Dec 2004 15:57:53 +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