autogen.sh 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #!/bin/sh
  2. # $Id$
  3. # Created 2003-08-29, Karl Berry. Public domain.
  4. if test "x$1" = x-n; then
  5. chicken=true
  6. echo "Ok, playing chicken; not actually running any commands."
  7. else
  8. chicken=
  9. fi
  10. echo "Preparing Texinfo development infrastructure:"
  11. # Generates an include file for tp/Makefile.am.
  12. cmd="./tp/maintain/regenerate_file_lists.pl"
  13. echo " $cmd"
  14. $chicken eval $cmd || exit 1
  15. # Generates another include file for tp/Makefile.am.
  16. cmd="(cd tp && ./maintain/regenerate_docstr.sh Makefile.docstr)"
  17. echo " $cmd"
  18. $chicken eval $cmd || exit 1
  19. # Generates an include file for tp/tests/Makefile.am.
  20. cmd="(cd tp/tests && ../maintain/regenerate_cmd_tests.sh Makefile.onetst . -base 'formatting' -long 'sectioning coverage indices nested_formats contents layout' -tex_html 'tex_html')"
  21. echo " $cmd"
  22. $chicken eval $cmd || exit 1
  23. # Generates an include file for each of tp/tests/htmlxref*/Makefile.am.
  24. for dir in htmlxref htmlxref-only_mono htmlxref-only_split; do
  25. cmd="(cd tp/tests/$dir && ../../maintain/regenerate_cmd_tests.sh Makefile.onetst $dir -base .)"
  26. echo " $cmd"
  27. $chicken eval $cmd || exit 1
  28. done
  29. # This overwrites lots of files with older versions.
  30. # I keep the newest versions of files common between distributions up to
  31. # date in CVS (see util/srclist.txt), because it's not trivial for every
  32. # developer to do this.
  33. #cmd="autoreconf --verbose --force --install --include=m4"
  34. # So instead:
  35. : ${ACLOCAL=aclocal}
  36. : ${AUTOHEADER=autoheader}
  37. : ${AUTOMAKE=automake}
  38. : ${AUTOCONF=autoconf}
  39. cmd="$ACLOCAL -I gnulib/m4 && $AUTOCONF && $AUTOHEADER && $AUTOMAKE"
  40. echo " $cmd $*"
  41. $chicken eval $cmd "$@" || exit 1
  42. : ${LIBTOOLIZE=libtoolize}
  43. cmd="(cd tp/Texinfo/Convert/XSParagraph && ${LIBTOOLIZE} \
  44. && autoreconf --force --verbose --install)"
  45. echo " $cmd"
  46. $chicken eval $cmd || exit 1
  47. : ${LIBTOOLIZE=libtoolize}
  48. cmd="(cd tp/Texinfo/MiscXS && ${LIBTOOLIZE} \
  49. && autoreconf --force --verbose --install)"
  50. echo " $cmd"
  51. $chicken eval $cmd || exit 1
  52. echo
  53. echo "Now run configure with your desired options, for instance:"
  54. echo " ./configure CFLAGS='-g'"