view move-if-change @ 103690:6cf0c4de552b

* gtkutil.c (xg_frame_set_char_size): Do set width/height if the frame isn't visible. (xg_frame_resized): If width/height is -1, get size of window from X server. * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK for MapNotify.
author Jan Djärv <jan.h.d@swipnet.se>
date Thu, 02 Jul 2009 12:27:23 +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