txinfo-without-info-suffix.sh 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #! /bin/sh
  2. # Copyright (C) 1997-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. # Test to make sure .info-less @setfilename works.
  17. required='makeinfo tex texi2dvi'
  18. . test-init.sh
  19. cat >> configure.ac << 'END'
  20. AC_OUTPUT
  21. END
  22. cat > Makefile.am << 'END'
  23. info_TEXINFOS = textutils.texi
  24. END
  25. cat > textutils.texi <<EOF
  26. \input texinfo
  27. @c dummy comment
  28. @setfilename textutils
  29. @settitle main
  30. @node Top
  31. Hello walls.
  32. @bye
  33. EOF
  34. $ACLOCAL
  35. $AUTOCONF
  36. AUTOMAKE_fails -a
  37. $EGREP '^(\./)?textutils\.texi:3:.*suffix-less info file' stderr
  38. $AUTOMAKE -a -Wno-obsolete
  39. grep '^INFO_DEPS.*textutils$' Makefile.in
  40. # We should not use single suffix inference rules (with separate
  41. # dependencies), this confuses Solaris make.
  42. grep '^\.texi:$' Makefile.in && exit 1
  43. grep 'textutils: *textutils\.texi' Makefile.in
  44. ./configure
  45. $MAKE distcheck
  46. :