alpha2.sh 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. # Another check for README-alpha support. This time it is requested
  17. # from configure.ac. Report from Akim Demaille.
  18. . test-init.sh
  19. cat > configure.ac << 'END'
  20. AC_INIT([alpha], [1.0b])
  21. AM_INIT_AUTOMAKE([readme-alpha])
  22. AC_CONFIG_FILES([Makefile sub/Makefile])
  23. AC_OUTPUT
  24. END
  25. cat > Makefile.am << 'END'
  26. SUBDIRS = sub
  27. check-local: distdir
  28. test -f $(distdir)/README-alpha
  29. test -f $(distdir)/sub/README
  30. test ! -f $(distdir)/sub/README-alpha
  31. : > works
  32. END
  33. mkdir sub
  34. : > sub/Makefile.am
  35. : > README-alpha
  36. : > sub/README-alpha
  37. : > sub/README
  38. # Gnits stuff.
  39. : > INSTALL
  40. : > NEWS
  41. : > README
  42. : > COPYING
  43. : > AUTHORS
  44. : > ChangeLog
  45. : > THANKS
  46. $ACLOCAL
  47. $AUTOCONF
  48. $AUTOMAKE
  49. ./configure
  50. $MAKE check
  51. test -f works