view move-if-change @ 87491:dd7c58c2342a

* dbus.texi (all): Replace "..." by @dots{}. (Type Conversion): Precise the value range for :byte types. (Signals): Rename dbus-unregister-signal to dbus-unregister-object. Mention its return value. (Errors and Events): There is no D-Bus error propagation during event processing.
author Michael Albinus <michael.albinus@gmx.de>
date Sun, 30 Dec 2007 15:47:41 +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