backcompat-acout.sh 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. # Backward-compatibility: AC_OUTPUT with arguments.
  17. . test-init.sh
  18. mkdir sub
  19. : > Makefile.am
  20. : > zardoz
  21. : > foo.in
  22. : > foo1.in
  23. : > foo2.in
  24. : > foo3.in
  25. : > sub/bar.in
  26. ls -l # For debugging.
  27. for args in \
  28. 'foo' \
  29. 'foo:foo1.in' \
  30. 'foo:zardoz' \
  31. 'foo:sub/bar.in' \
  32. 'foo:foo1.in:foo2.in' \
  33. 'foo:zardoz:zardoz' \
  34. 'foo:foo1.in:foo2.in:foo3.in' \
  35. 'foo:foo1.in:foo2.in:sub/bar.in:foo3.in' \
  36. ; do
  37. rm -rf autom4te*.cache aclocal.m4
  38. unindent >configure.ac <<END
  39. AC_INIT([$me], [1.0])
  40. AM_INIT_AUTOMAKE
  41. AC_CONFIG_FILES([$args])
  42. AC_OUTPUT
  43. END
  44. cat configure.ac # For debugging.
  45. $ACLOCAL
  46. $AUTOMAKE Makefile
  47. mv -f Makefile.in Makefile.acf
  48. rm -rf autom4te*.cache aclocal.m4
  49. unindent >configure.ac <<END
  50. AC_INIT([$me], [1.0])
  51. AM_INIT_AUTOMAKE
  52. AC_OUTPUT([$args])
  53. END
  54. cat configure.ac # For debugging.
  55. $ACLOCAL
  56. $AUTOMAKE Makefile
  57. mv -f Makefile.in Makefile.aco
  58. diff Makefile.acf Makefile.aco
  59. done
  60. :