Clarify overriding of `*_DEPENDENCIES' in LIBOBJS node.
[automake/ericb.git] / tests / alpha.test
blob9994d9d66cfdcc1f2d998429d92f59d3dbd1a07e
1 #! /bin/sh
2 # Copyright (C) 1998, 2001, 2002, 2003, 2008 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 3, 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 <http://www.gnu.org/licenses/>.
17 # Make sure README-alpha is distributed when appropriate. Report from
18 # Jim Meyering.
19 . ./defs || Exit 1
21 set -e
23 cat > configure.in << 'END'
24 AC_INIT([alpha], [1.0a])
25 AM_INIT_AUTOMAKE
26 AC_CONFIG_FILES([Makefile])
27 AC_CONFIG_FILES([sub/Makefile])
28 AC_OUTPUT
29 END
31 cat > Makefile.am << 'END'
32 AUTOMAKE_OPTIONS = gnits
33 SUBDIRS = sub
34 check-local: distdir
35 test -f $(distdir)/README-alpha
36 test -f $(distdir)/sub/README
37 test ! -f $(distdir)/sub/README-alpha
38 : > works
39 END
41 mkdir sub
42 cat > sub/Makefile.am << 'END'
43 AUTOMAKE_OPTIONS = gnits
44 END
46 : > README-alpha
47 : > sub/README-alpha
48 : > sub/README
50 # Gnits stuff.
51 : > INSTALL
52 : > NEWS
53 : > README
54 : > COPYING
55 : > AUTHORS
56 : > ChangeLog
57 : > THANKS
59 $ACLOCAL
60 $AUTOCONF
61 $AUTOMAKE
62 ./configure
64 # make distdir should fail because NEWS does not mention 1.0a
65 $MAKE check 2>stderr && { cat stderr >&2; Exit 1; }
66 cat stderr >&2
67 grep 'NEWS not updated' stderr
68 test ! -f works
70 echo 'alpha 1.0a released' > NEWS
71 $MAKE check
72 test -f works