view move-if-change @ 106814:84369111c005

Call SIGNAL_THREAD_CHECK from signal handlers. * keyboard.c (input_available_signal) [SYNC_INPUT]: Call SIGNAL_THREAD_CHECK (Bug#5333). * atimer.c (alarm_signal_handler) [!SYNC_INPUT]: Call SIGNAL_THREAD_CHECK.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Wed, 13 Jan 2010 13:42:45 +0900
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