txinfo-nodist-info.sh 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #! /bin/sh
  2. # Copyright (C) 2013-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 we can force generated '.info' info files not to be
  17. # distributed.
  18. required=makeinfo
  19. . test-init.sh
  20. echo AC_OUTPUT >> configure.ac
  21. cat > Makefile.am << 'END'
  22. AUTOMAKE_OPTIONS = info-in-builddir
  23. info_TEXINFOS = foo.texi
  24. CLEANFILES = foo.info
  25. # To make distcheck work without requiring TeX and texi2dvi.
  26. dvi:
  27. # Do not distribute generated '.info' files.
  28. dist-info:
  29. @:
  30. END
  31. mkdir subdir
  32. cat > foo.texi << 'END'
  33. \input texinfo
  34. @setfilename foo.info
  35. @settitle foo
  36. @node Top
  37. Hello walls.
  38. @include version.texi
  39. @bye
  40. END
  41. $ACLOCAL
  42. $AUTOCONF
  43. $AUTOMAKE -a -Wno-override
  44. ./configure
  45. $MAKE distdir
  46. ls -l . $distdir # For debugging.
  47. test ! -e foo.info
  48. test ! -e $distdir/foo.info
  49. $MAKE
  50. test -f foo.info
  51. $MAKE distdir
  52. ls -l $distdir # For debugging.
  53. test ! -f $distdir/foo.info
  54. $MAKE distcheck
  55. :