view move-if-change @ 89054:8a6da305ac40

(unibyte_to_multibyte_table): New variable. (unibyte_char_to_multibyte): Move to character.h and defined as macro. (multibyte_char_to_unibyte): If C is an eight-bit character, convert it to the corresponding byte value.
author Kenichi Handa <handa@m17n.org>
date Tue, 03 Sep 2002 04:07:11 +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