autodist-stamp-vti.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #! /bin/sh
  2. # Copyright (C) 2011-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 'stamp-vti' is automatically distributed when info_TEXINFOS
  17. # and version.texi are involved.
  18. # Related to automake bug#7819.
  19. required=makeinfo
  20. . test-init.sh
  21. cat >> configure.ac << END
  22. AC_OUTPUT
  23. END
  24. cat > Makefile.am << 'END'
  25. info_TEXINFOS = foo.texi
  26. .PHONY: test
  27. test: all distdir
  28. ls -l $(distdir)
  29. echo ' ' $(DIST_COMMON) ' ' | grep '[ /]stamp-vti '
  30. test -f $(distdir)/stamp-vti
  31. END
  32. cat > foo.texi << 'END'
  33. \input texinfo
  34. @setfilename foo.info
  35. @settitle Zardoz
  36. @node Top
  37. @include version.texi
  38. bar baz quux
  39. @bye
  40. END
  41. # Required when using Texinfo.
  42. : > texinfo.tex
  43. cp "$am_scriptdir"/mdate-sh .
  44. $ACLOCAL
  45. $AUTOCONF
  46. $AUTOMAKE -a
  47. ./configure
  48. $MAKE test
  49. :