view move-if-change @ 87280:e0d7140e5b0e

* dbusbind.c (xd_retrieve_value, xd_retrieve_arg) (Fdbus_call_method, Fdbus_send_signal, xd_read_message): Use `unsigned int' instead of `uint'. (xd_read_message, Fdbus_register_signal): Split expressions into multiple lines before operators "&&" and "||", according to the GNU Coding Standards.
author Michael Albinus <michael.albinus@gmx.de>
date Fri, 14 Dec 2007 21:49:52 +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