output6.sh 1.3 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. # Check for support for colon-separated input files in AC_CONFIG_FILES.
  17. . test-init.sh
  18. cat > configure.ac << END
  19. AC_INIT([$me], [1.0])
  20. AM_INIT_AUTOMAKE
  21. AC_CONFIG_FILES([foo:a.in:b.in:c.in:d.in])
  22. AC_OUTPUT
  23. END
  24. cat >a.in <<'EOF'
  25. a = A
  26. b = A
  27. c = A
  28. d = A
  29. EOF
  30. cat >b.in <<'EOF'
  31. b = B
  32. c = B
  33. d = B
  34. EOF
  35. cat >c.am <<'EOF'
  36. c = C
  37. d = C
  38. .PHONY: test1 test2
  39. test1:
  40. test $(a)$(b)$(c)$(d) = ABCD
  41. test2:
  42. test $(a)$(b)$(c)$(d) = GFCD
  43. EOF
  44. echo 'd = D' > d.in
  45. $ACLOCAL
  46. $AUTOCONF
  47. $AUTOMAKE
  48. ./configure
  49. $MAKE -f foo test1
  50. $sleep
  51. cat >b.in <<'EOF'
  52. a = G
  53. b = F
  54. c = F
  55. d = F
  56. EOF
  57. using_gmake || $MAKE -f foo
  58. $MAKE -f foo test2
  59. :