view move-if-change @ 5732:02d0124c6314

AC_FUNC_SEEKO is the name of the autoconf macro. HAVE_FSEEKO is the name of the C preprocessor symbol. Do not confuse the two. See xemacs-patches message <CAHCOHQ=i7N2mYiE+M7O+0jqnDtmCBPSx+iitaintGJ=Ttwcf8Q@mail.gmail.com>.
author Jerry James <james@xemacs.org>
date Thu, 28 Mar 2013 08:33:57 -0600
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