view move-if-change @ 41852:4330aadac353

* configure.in (AC_PREREQ): Bump from 2.50 to 2.51; needed for vfork. (AC_FUNC_VFORK): Remove. (AC_FUNC_FORK): Add. (HAVE_DES_H, HAVE_KRB5_H): Properly quote args of AC_CHECK_HEADERS; this is required by recent Autoconf versions.
author Paul Eggert <eggert@twinsun.com>
date Fri, 07 Dec 2001 05:49:20 +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