view move-if-change @ 60582:c2a74bfb2e79

(xic_defaut_fontset): New constant. (xic_create_fontsetname): New function. Extracted from create_frame_xic. Try to generate a slightly better fontset. (xic_create_xfontset): Use it. (create_frame_xic): Simplify.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 12 Mar 2005 23:25:42 +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