view move-if-change @ 5794:2d20d57d4e7b

Do not build or ship the texinfo info files. They are available from the texinfo distribution, and break the build for some versions of makeinfo. See xemacs-patches message with ID <CAHCOHQ=EERhpe14cMzWjp286TzNHuw8ez-L-uy6kjoRPZE3b3A@mail.gmail.com>.
author Jerry James <james@xemacs.org>
date Wed, 07 May 2014 13:33:50 -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