view move-if-change @ 61554:217c5fe404c0

(x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]: Use ENCODE_SYSTEM to encode title bar string. (x_create_tip_frame): Apply 2005-03-18 change for xfns.c. (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]: Use CFStringGetSystemEncoding to get system default string encoding.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Thu, 14 Apr 2005 09:25:41 +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