view move-if-change @ 110823:56cf47a21830

* dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it is more portable. * keyboard.c (gobble_input): Move call of xd_read_queued_messages ... (kbd_buffer_get_event): ... here. This is needed for cygwin, which has not defined SIGIO.
author Michael Albinus <michael.albinus@gmx.de>
date Tue, 28 Sep 2010 15:39:22 +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