view move-if-change @ 102750:5f5d66aa8cda

(handle_one_xevent): Call x_handle_net_wm_state if the property _NET_WM_STATE has changed. updated. (x_handle_net_wm_state): New function to update frame parameter fullscreen. (x_term_init): Initialize atoms for _NET_WM_STATE.
author Jan Djärv <jan.h.d@swipnet.se>
date Fri, 27 Mar 2009 18:37:56 +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