pr2.sh 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 reported in PR 2.
  17. # "make dist" fails for AC_OUTPUT(README.foo:templ/README.foo.in).
  18. #
  19. # == Report ==
  20. # When my AC_OUTPUT macro in configure.ac contains something
  21. # like the following (among the Makefiles)
  22. # README.foo:templ/README.foo.in
  23. # the generated dist target in the Makefile.in fails,
  24. # because DIST_COMMON will contain templ/README.foo.in
  25. # and the dist target will try to copy templ/README.foo.in
  26. # to the distribution directory before it creates a templ
  27. # subdirectory in the distribution directory.
  28. . test-init.sh
  29. cat >> configure.ac << 'END'
  30. AC_OUTPUT([README.foo:templ/README.foo.in])
  31. END
  32. : > Makefile.am
  33. mkdir templ
  34. : > templ/README.foo.in
  35. $ACLOCAL
  36. $AUTOCONF
  37. $AUTOMAKE
  38. ./configure
  39. $MAKE distdir
  40. test -f $distdir/templ/README.foo.in
  41. :