Merge branch 'minor'
[automake.git] / t / alpha2.sh
blobca7d0177ad57bfacb7454c640b2ad8013f883c92
1 #! /bin/sh
2 # Copyright (C) 2003-2017 Free Software Foundation, Inc.
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.
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.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <https://www.gnu.org/licenses/>.
17 # Another check for README-alpha support. This time it is requested
18 # from configure.ac. Report from Akim Demaille.
20 . test-init.sh
22 cat > configure.ac << 'END'
23 AC_INIT([alpha], [1.0b])
24 AM_INIT_AUTOMAKE([readme-alpha])
25 AC_CONFIG_FILES([Makefile sub/Makefile])
26 AC_OUTPUT
27 END
29 cat > Makefile.am << 'END'
30 SUBDIRS = sub
31 check-local: distdir
32 test -f $(distdir)/README-alpha
33 test -f $(distdir)/sub/README
34 test ! -f $(distdir)/sub/README-alpha
35 : > works
36 END
38 mkdir sub
39 : > sub/Makefile.am
41 : > README-alpha
42 : > sub/README-alpha
43 : > sub/README
45 # Gnits stuff.
46 : > INSTALL
47 : > NEWS
48 : > README
49 : > COPYING
50 : > AUTHORS
51 : > ChangeLog
52 : > THANKS
54 $ACLOCAL
55 $AUTOCONF
56 $AUTOMAKE
57 ./configure
58 $MAKE check
59 test -f works