am-ft: make the environment available earlier
[platform/upstream/automake.git] / t / alpha2.sh
1 #! /bin/sh
2 # Copyright (C) 2003-2013 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
17 # Another check for README-alpha support.  This time it is requested
18 # from configure.ac.  Report from Akim Demaille.
19
20 . test-init.sh
21
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
28
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
37
38 mkdir sub
39 : > sub/Makefile.am
40
41 : > README-alpha
42 : > sub/README-alpha
43 : > sub/README
44
45 # Gnits stuff.
46 : > INSTALL
47 : > NEWS
48 : > README
49 : > COPYING
50 : > AUTHORS
51 : > ChangeLog
52 : > THANKS
53
54 $ACLOCAL
55 $AUTOCONF
56 $AUTOMAKE
57 ./configure
58 $MAKE check
59 test -f works