view move-if-change @ 2655:4769b9c268eb

[xemacs-hg @ 2005-03-12 11:00:20 by malcolmp] syssignal.h: Configure always sets HAVE_DECL_SYS_SIGLIST. Test for non-zero.
author malcolmp
date Sat, 12 Mar 2005 11:00:29 +0000
parents 376386a54a3c
children
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