2
0

man8.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #! /bin/sh
  2. # Copyright (C) 2010-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 for a bug in distcheck w.r.t. generated manpages.
  17. . test-init.sh
  18. # Avoid a spurious failure due to a known FreeBSD make incompatibility.
  19. useless_vpath_rebuild \
  20. && skip_ "VPATH useless rebuild detected (see bug#7884)"
  21. cat > Makefile.am << 'END'
  22. dist_man_MANS = foo.1
  23. foo.1:
  24. ## This 'rm' command will fail if $(srcdir) is unwritable.
  25. rm -f $(srcdir)/$@
  26. : > $(srcdir)/$@
  27. END
  28. cat >> configure.ac <<'END'
  29. AC_OUTPUT
  30. END
  31. $ACLOCAL
  32. $AUTOMAKE
  33. $AUTOCONF
  34. mkdir build
  35. cd build
  36. ../configure
  37. $MAKE
  38. test -f ../foo.1
  39. $MAKE distdir
  40. test -f $me-1.0/foo.1
  41. $MAKE distcheck
  42. cd ..
  43. rm -f foo.1
  44. ./configure
  45. $MAKE
  46. test -f foo.1
  47. $MAKE distdir
  48. test -f $me-1.0/foo.1
  49. $MAKE distcheck
  50. :