subdirectories, and check-news report.
* tests/alpha2.test: New file. Bug report from Akim Demaille.
* tests/gnits2.test: Make sure README-alpha is not distributed.
* tests/Makefile.am (TESTS): Add alpha2.test.
* automake.in (handle_minor_options): Distribute README-alpha
using push_dist_common, not require_file_with_macro.
+2003-06-04 Alexandre Duret-Lutz <adl@gnu.org>
+
+ * tests/alpha.test: Really run $MAKE. Augment to test
+ subdirectories, and check-news report.
+ * tests/alpha2.test: New file. Bug report from Akim Demaille.
+ * tests/gnits2.test: Make sure README-alpha is not distributed.
+ * tests/Makefile.am (TESTS): Add alpha2.test.
+ * automake.in (handle_minor_options): Distribute README-alpha
+ using push_dist_common, not require_file_with_macro.
+
2003-06-03 Alexandre Duret-Lutz <adl@gnu.org>
* lib/Automake/Configure_ac.pm
{
# This means we have an alpha release. See
# GNITS_VERSION_PATTERN for details.
- require_file_with_macro (TRUE, 'AUTOMAKE_OPTIONS',
- FOREIGN, 'README-alpha');
+ push_dist_common ('README-alpha');
}
}
}
acsubst2.test \
all.test \
alpha.test \
+alpha2.test \
amassign.test \
ammissing.test \
ansi.test \
acsubst2.test \
all.test \
alpha.test \
+alpha2.test \
amassign.test \
ammissing.test \
ansi.test \
#! /bin/sh
-# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1998, 2001, 2002, 2003 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
# Jim Meyering.
. ./defs || exit 1
+set -e
+
cat > configure.in << 'END'
-AC_INIT
-AM_INIT_AUTOMAKE(zardoz, 1.5e)
-AC_CONFIG_FILES(Makefile)
+AC_INIT([alpha], [1.0a])
+AM_INIT_AUTOMAKE
+AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([sub/Makefile])
+AC_OUTPUT
END
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = gnits
+SUBDIRS = sub
+check-local: distdir
+ test -f $(distdir)/README-alpha
+ test -f $(distdir)/sub/README
+ test ! -f $(distdir)/sub/README-alpha
+ : > works
+END
+
+mkdir sub
+cat > sub/Makefile.am << 'END'
+AUTOMAKE_OPTIONS = gnits
END
: > README-alpha
+: > sub/README-alpha
+: > sub/README
# Gnits stuff.
: > INSTALL
: > ChangeLog
: > THANKS
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE
+./configure
+
+# make distdir should fail because NEWS does not mention 1.0a
+$MAKE check 2>stderr && exit 1
+cat stderr
+grep 'NEWS not updated' stderr
+test ! -f works
-grep README-alpha Makefile.in
+echo 'alpha 1.0a released' > NEWS
+$MAKE check
+test -f works
--- /dev/null
+#! /bin/sh
+# Copyright (C) 2003 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Automake; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+# Another check for README-alpha support. This time it is requested
+# from configure.in. Report from Akim Demaille.
+
+. ./defs || exit 1
+
+set -e
+
+cat > configure.in << 'END'
+AC_INIT([alpha], [1.0b])
+AM_INIT_AUTOMAKE([readme-alpha])
+AC_CONFIG_FILES([Makefile sub/Makefile])
+AC_OUTPUT
+END
+
+cat > Makefile.am << 'END'
+SUBDIRS = sub
+check-local: distdir
+ test -f $(distdir)/README-alpha
+ test -f $(distdir)/sub/README
+ test ! -f $(distdir)/sub/README-alpha
+ : > works
+END
+
+mkdir sub
+: > sub/Makefile.am
+
+: > README-alpha
+: > sub/README-alpha
+: > sub/README
+
+# Gnits stuff.
+: > INSTALL
+: > NEWS
+: > README
+: > COPYING
+: > AUTHORS
+: > ChangeLog
+: > THANKS
+
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE
+./configure
+$MAKE check
+test -f works
: > ChangeLog
: > THANKS
+# The following file should not be distributed.
+# (alpha.test checks the case where it must be distributed.)
+: > README-alpha
+
set -e
$ACLOCAL
$AUTOCONF
$AUTOMAKE -a
+grep README-alpha Makefile.in && exit 1
+
mkdir build
cd build