txinfo24.sh 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #! /bin/sh
  2. # Copyright (C) 2002-2017 Free Software Foundation, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. # Check that info files are built in builddir when needed.
  17. # (Similar to txinfo16.sh, plus CLEANFILES).
  18. # (See also txinfo23.sh and txinfo25.sh).
  19. required='makeinfo tex texi2dvi'
  20. . test-init.sh
  21. cat >> configure.ac << 'END'
  22. AC_OUTPUT
  23. END
  24. cat > Makefile.am << 'END'
  25. CLEANFILES = main.info
  26. info_TEXINFOS = main.texi
  27. END
  28. cat > main.texi << 'END'
  29. \input texinfo
  30. @setfilename main.info
  31. @settitle main
  32. @node Top
  33. Hello walls.
  34. @include version.texi
  35. @bye
  36. END
  37. $ACLOCAL
  38. $AUTOMAKE --add-missing -Wno-obsolete
  39. $AUTOCONF
  40. mkdir build
  41. cd build
  42. ../configure
  43. $MAKE
  44. test ! -e ../main.info
  45. test -f main.info
  46. cd ..
  47. rm -rf build
  48. ./configure
  49. $MAKE
  50. test -f main.info
  51. # Make sure stamp-vti is older that version.texi.
  52. # (A common situation in a real tree).
  53. test -f stamp-vti
  54. test -f version.texi
  55. $sleep
  56. touch stamp-vti
  57. $MAKE distclean
  58. test -f stamp-vti
  59. test -f version.texi
  60. mkdir build
  61. cd build
  62. ../configure
  63. $MAKE
  64. # main.info should be rebuilt in the current directory.
  65. test -f main.info
  66. test ! -e ../main.info
  67. $MAKE dvi
  68. test -f main.dvi
  69. $MAKE distcheck
  70. :