2
0

txinfo-vtexi.sh 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #!/bin/sh
  2. # Copyright (C) 1996-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. # Basic checks and some regressions testing on 'version.texi'
  17. # support for texinfo files.
  18. . test-init.sh
  19. cat > Makefile.am << 'END'
  20. info_TEXINFOS = textutils.texi
  21. END
  22. cat > textutils.texi << 'END'
  23. @include version.texi
  24. @setfilename textutils.info
  25. END
  26. # Required when using Texinfo.
  27. : > mdate-sh
  28. : > texinfo.tex
  29. $ACLOCAL
  30. $AUTOMAKE
  31. # Test for bug reported by Jim Meyering:
  32. # When I ran automake-0.29 on textutils,
  33. # I noticed that doc/Makefile.in had
  34. # textutils.info: textutils.texi
  35. # instead of
  36. # textutils.info: textutils.texi version.texi
  37. # Today this should be:
  38. # $(srcdir)/textutils.info: $(srcdir)/version.texi
  39. # or:
  40. # $(srcdir)/textutils.info: version.texi
  41. grep '^\$(srcdir)/textutils\.info:.*[ /]version\.texi *$' Makefile.in
  42. # Test for bug reported by Lars Hecking:
  43. # When running the first version of configure.ac aware automake,
  44. # @CONFIGURE_AC@ was not properly substituted.
  45. $EGREP 'stamp-vti:.*textutils\.texi( .*)?$' Makefile.in
  46. $EGREP 'stamp-vti:.*\$\(top_srcdir\)/configure( .*)?$' Makefile.in
  47. # Check that the path to mdate-sh is correct. Over escaping of '$'
  48. # etc. once led to '\$\(srcdir\)/mdate-sh'.
  49. # Filter out '$(srcdir)/mdate-sh'; there should be no occurrences
  50. # of '.../mdate-sh' left then.
  51. sed 's,\$(srcdir)/mdate-sh,,g' Makefile.in | grep '/mdate-sh' && exit 1
  52. :