instfail-info.sh 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #! /bin/sh
  2. # Copyright (C) 2008-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. # The install rule should honor failures of the install program.
  17. # Some of these are already caught by 'instmany.sh'.
  18. # This test has a few sister tests, for java, info, libtool.
  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 = info1.texi info2.texi info3.texi
  26. END
  27. for n in 1 2 3; do
  28. cat >info$n.texi <<END
  29. \input texinfo
  30. @setfilename info$n.info
  31. @settitle main
  32. @node Top
  33. Hello walls.
  34. @bye
  35. END
  36. done
  37. $ACLOCAL
  38. $AUTOCONF
  39. $AUTOMAKE --add-missing
  40. instdir=$(pwd)/inst || fatal_ "getting current working directory"
  41. ./configure --prefix="$instdir"
  42. $MAKE
  43. $MAKE install
  44. $MAKE uninstall
  45. for file in info1.info
  46. do
  47. chmod a-r $file
  48. test ! -r $file || skip_ "cannot drop file read permissions"
  49. $MAKE install-data && exit 1
  50. chmod u+r $file
  51. done
  52. :