view move-if-change @ 62287:cb2910e175ff

Sync with src/s/template.h. Don't include fcntl.h, time.h, or signal.h. (index, rindex): New macros. [__MRC__] (sigmask, __signal_max, NSIG): Adjust signal numbers for compatibility with predefined ones. (PTR): Move from s-mac.h. (HAVE_PWD_H): Move to config.h. (volatile): Remove macro. [__MRC__] (strftime): Likewise. (read_input_waiting, sys_gmtime, sys_localtime, sys_ctime) (sys_time, sys_signal, atof): Remove declarations.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Fri, 13 May 2005 08:48:45 +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