#!/bin/sh # Create the build system. set -e -x ref=$(grep '\\def\\texinfoversion' build-aux/texinfo.tex,ref | tr -c -d [:digit:]) autoreconf -vfi ac=$(grep '\\def\\texinfoversion' build-aux/texinfo.tex | tr -c -d [:digit:]) # Use our reference version of texinfo.tex or the one from automake, whichever # is most recent. if [ $ref -gt $ac ] ; then cp -f build-aux/texinfo.tex,ref build-aux/texinfo.tex; fi