| #!/bin/sh | |
| # Created 2003-08-29, Karl Berry. Public domain. | |
| if test "x$1" = x-n; then | |
| chicken=true | |
| echo "Ok, playing chicken; not actually running any commands." | |
| else | |
| chicken= | |
| fi | |
| echo "Preparing Texinfo development infrastructure:" | |
| # Generates an include file for tp/Makefile.am. | |
| cmd="./tp/maintain/regenerate_file_lists.pl" | |
| echo " $cmd" | |
| $chicken eval $cmd || exit 1 | |
| # Generates another include file for tp/Makefile.am. | |
| cmd="(cd tp && ./maintain/regenerate_docstr.sh Makefile.docstr)" | |
| echo " $cmd" | |
| $chicken eval $cmd || exit 1 | |
| # Generates an include file for tp/tests/Makefile.am. | |
| cmd="(cd tp/tests && ../maintain/regenerate_cmd_tests.sh Makefile.onetst . -base 'formatting sectioning indices nested_formats contents layout' -tex_html 'tex_html' -other 'other')" | |
| echo " $cmd" | |
| $chicken eval $cmd || exit 1 | |
| # missing texi2any_internals.texi stops automake. Set up a fake | |
| # texi2any_internals.texi with a file timestamp set in the past, | |
| # if texi2any_internals.texi is not present | |
| if test '!' -s doc/tp_api/texi2any_internals.texi ; then | |
| cmd="echo '@setfilename texi2any_internals.info' > doc/tp_api/texi2any_internals.texi; touch -t 200001010000 doc/tp_api/texi2any_internals.texi" | |
| echo " $cmd" | |
| $chicken eval $cmd || exit 1 | |
| fi | |
| # This overwrites lots of files with older versions. | |
| #cmd="autoreconf --verbose --force --install --include=m4" | |
| # So instead: | |
| : ${ACLOCAL=aclocal} | |
| : ${AUTOHEADER=autoheader} | |
| : ${AUTOMAKE=automake} | |
| : ${AUTOCONF=autoconf} | |
| cmd="$ACLOCAL -I gnulib/m4 && $AUTOCONF && $AUTOHEADER && $AUTOMAKE" | |
| echo " $cmd $*" | |
| $chicken eval $cmd "$@" || exit 1 | |
| : ${LIBTOOLIZE=libtoolize} | |
| cmd="(cd tp/Texinfo/XS && ${LIBTOOLIZE} \ | |
| && autoreconf --force --verbose --install)" | |
| echo " $cmd" | |
| $chicken eval $cmd || exit 1 | |
| echo | |
| echo "Now run configure with your desired options, for instance:" | |
| echo " ./configure CFLAGS='-g'" |