view move-if-change @ 1070:989ddde6705d

[xemacs-hg @ 2002-10-24 16:19:39 by youngs] 2002-10-25 Stephen J. Turnbull <stephen@xemacs.org> * configure.in (Check for POSIX functions): New section head. getaddrinfo is detected on HP-UX 11.XX, but appears to be non-functional. Disable it. Based on work by Darryl Okahata.
author youngs
date Thu, 24 Oct 2002 16:21:17 +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