txinfo19.sh 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #! /bin/sh
  2. # Copyright (C) 2003-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 support for DJGPP's .iNN info files.
  17. required=makeinfo
  18. . test-init.sh
  19. echo AC_OUTPUT >> configure.ac
  20. cat > Makefile.am << 'END'
  21. info_TEXINFOS = main.texi
  22. END
  23. cat > main.texi << 'END'
  24. \input texinfo
  25. @setfilename main.info
  26. @settitle main
  27. @node Top
  28. Hello walls.
  29. @bye
  30. END
  31. $ACLOCAL
  32. $AUTOMAKE --add-missing
  33. $AUTOCONF
  34. ./configure "--infodir=$(pwd)/_inst"
  35. $MAKE
  36. # Make sure .iNN files are installed.
  37. : > main.i1
  38. : > main.i21
  39. $MAKE install
  40. test -f _inst/main.i1
  41. test -f _inst/main.i21
  42. # They should be uninstalled too.
  43. $MAKE uninstall
  44. test ! -e _inst/main.i1
  45. test ! -e _inst/main.i21
  46. # Make sure rebuild rules erase old .iNN files when they run makeinfo.
  47. $sleep
  48. touch main.texi
  49. test -f main.i1
  50. test -f main.i21
  51. $MAKE
  52. test ! -e main.i1
  53. test ! -e main.i21
  54. # Finally, we also want them erased by maintainer-clean.
  55. : > main.i7
  56. : > main.i39
  57. $MAKE maintainer-clean
  58. test ! -e main.i7
  59. test ! -e main.i39
  60. :