pr9.sh 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #! /bin/sh
  2. # Copyright (C) 1999-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 for bug in PR 9.
  17. # "make dist" incorrect when AC_CONFIG_AUX_DIR is present.
  18. #
  19. # == Report ==
  20. # When AC_CONFIG_AUX_DIR is set (in my case to 'support'), make dist
  21. # no longer automatically includes config.guess, config.sub, install-sh,
  22. # ltconfig, ltmain.sh, mdate-sh, missing, and mkinstalldirs. In fact,
  23. # the entire 'support/' directory is omitted.
  24. . test-init.sh
  25. cat > configure.ac << END
  26. AC_INIT([$me], [1.0])
  27. AC_CONFIG_AUX_DIR([support])
  28. AM_INIT_AUTOMAKE
  29. AC_CONFIG_FILES([Makefile])
  30. AC_OUTPUT
  31. END
  32. : > Makefile.am
  33. mkdir support
  34. $ACLOCAL
  35. $AUTOCONF
  36. $AUTOMAKE -a -c
  37. ./configure
  38. $MAKE
  39. $MAKE distcheck
  40. gzip -d $distdir.tar.gz
  41. tar tf $distdir.tar | $FGREP support
  42. tar xf $distdir.tar
  43. ls -l . $distdir # For debugging.
  44. test -d $distdir/support
  45. ls -l $distdir/support # For debugging.
  46. test -f $distdir/support/install-sh
  47. :