Mercurial > emacs
view move-if-change @ 74408:4c44b86a628e
(handle_USR1_signal, handle_USR2_signal): Replace by...
(handle_user_signal): ... this, which generates two USER_SIGNAL_EVENTs
first with code == 0 [signal] and one with code == sig number.
(main): Use it as handler for SIGUR1 and SIGUSR2.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Mon, 04 Dec 2006 12:27:09 +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