view move-if-change @ 107779:41e0da544208

Set WM_CLIENT_MACHINE and _NET_WM_PID properties (Bug#5828). * xfns.c (set_machine_and_pid_properties): New function. (Fx_create_frame): Call set_machine_and_pid_properties.
author jhd <jhd@f12.localdomain>
date Sun, 04 Apr 2010 12:47:12 +0200
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