]> git.ipfire.org Git - thirdparty/automake.git/log
thirdparty/automake.git
12 years agotests: fix spurious failure in test on Flex headers
Stefano Lattarini [Tue, 28 Aug 2012 09:52:45 +0000 (11:52 +0200)] 
tests: fix spurious failure in test on Flex headers

* t/lex-headers.sh: Don't use 'yl_distcheck', simply call "make distcheck"
instead, as GNU make cannot suffer of the FreeBSD bug 'yl_distcheck' was
meant to guard against.
(Makefile.am): Don't use $(AM_MAKEFLAGS) when invoking make recursively.
This avoids a maintainer-check failure.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agoMerge branch 'master' into ng/master
Stefano Lattarini [Tue, 28 Aug 2012 09:08:05 +0000 (11:08 +0200)] 
Merge branch 'master' into ng/master

* master:
  tests: fix a maintainer-check failure ('Exit' used instead of 'exit')
  sync: update files from upstream with "make fetch"
  automake: don't define many identical 'lang_*_rewrite' subroutines
  coverage: bugs #8844 and #9933 (already fixed by Akim's work on ylwrap)

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agotests: fix a maintainer-check failure ('Exit' used instead of 'exit')
Stefano Lattarini [Tue, 28 Aug 2012 08:58:37 +0000 (10:58 +0200)] 
tests: fix a maintainer-check failure ('Exit' used instead of 'exit')

* t/lisp-loadpath.sh: Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agoMerge branch 'maint'
Stefano Lattarini [Tue, 28 Aug 2012 08:00:45 +0000 (10:00 +0200)] 
Merge branch 'maint'

* maint:
  sync: update files from upstream with "make fetch"
  automake: don't define many identical 'lang_*_rewrite' subroutines
  coverage: bugs #8844 and #9933 (already fixed by Akim's work on ylwrap)

12 years agosync: update files from upstream with "make fetch"
Stefano Lattarini [Tue, 28 Aug 2012 07:59:22 +0000 (09:59 +0200)] 
sync: update files from upstream with "make fetch"

* lib/config.guess, lib/config.sub: Update.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agoautomake: don't define many identical 'lang_*_rewrite' subroutines
Stefano Lattarini [Wed, 6 Jun 2012 07:52:22 +0000 (09:52 +0200)] 
automake: don't define many identical 'lang_*_rewrite' subroutines

This is just a simplifying refactoring, with no semantic change intended.

Cherry-picked from the Automake-NG commit 'v1.12.1-312-g63aa4a9' of
2012-06-07.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agocoverage: bugs #8844 and #9933 (already fixed by Akim's work on ylwrap)
Stefano Lattarini [Sun, 26 Aug 2012 17:25:02 +0000 (19:25 +0200)] 
coverage: bugs #8844 and #9933 (already fixed by Akim's work on ylwrap)

* t/flex-header.sh: New test, show that automake bug#8844 and bug#9933
have already been fixed by the recent-ish improvements to ylwrap (merged
with commit v1.12.2-27-gec5cb49 of 2012-07-16, "Merge branch 'yacc-work'
into maint").
* t/list-of-tests.mk: Update.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agoMerge branch 'master' into ng/master
Stefano Lattarini [Sun, 26 Aug 2012 11:35:17 +0000 (13:35 +0200)] 
Merge branch 'master' into ng/master

* master:
  AM_INIT_AUTOMAKE: allow obsolescent two-args invocation once again
  docs: don't suggest to use recursive makefile setup
  tests: fix a timestamp race in python tests
  tests: fixup: make distcheck-override-infodir pass again
  sync: update files from upstream with "make fetch"
  maint: post-release minor version bump
  release: stable release 1.12.3
  maintcheck: fix spurious warnings
  docs: fix typo: s/make install-info/make uninstall-info/
  tests: fixup: make a couple of tests executable

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agoMerge branch 'maint'
Stefano Lattarini [Sun, 26 Aug 2012 10:55:38 +0000 (12:55 +0200)] 
Merge branch 'maint'

* maint:
  docs: don't suggest to use recursive makefile setup
  tests: fix a timestamp race in python tests
  tests: fixup: make distcheck-override-infodir pass again
  sync: update files from upstream with "make fetch"
  maint: post-release minor version bump
  release: stable release 1.12.3
  maintcheck: fix spurious warnings
  docs: fix typo: s/make install-info/make uninstall-info/
  tests: fixup: make a couple of tests executable

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agoAM_INIT_AUTOMAKE: allow obsolescent two-args invocation once again
Stefano Lattarini [Fri, 24 Aug 2012 08:47:17 +0000 (10:47 +0200)] 
AM_INIT_AUTOMAKE: allow obsolescent two-args invocation once again

This partially reverts commit 'v1.12-67-ge186355' of 2012-05-25,
"init: obsolete usages of AM_INIT_AUTOMAKE not supported anymore"

Some users still need to be able to define the version number for
their package dynamically, at configure runtime.

Their user case is that, for development snapshots, they want to be
able to base the complete version of the package on the VCS revision
ID (mostly Git or Mercurial).  They could of course do so by
specifying such version dynamically in their call to AC_INIT, as is
done by several GNU packages.  But then they would need to regenerate
and re-run the configure script before each snapshot, which might be
very time-consuming for complex packages, to the point of slowing
down and even somewhat impeding development.

The situation should truly be solved in Autoconf, by allowing a way
to specify the version dynamically in a way that doesn't force the
configure script to be regenerated and re-run every time the package
version changes.  But until Autoconf has been improved to allow
this, Automake will have to support the obsolescent two-arguments
invocation for AM_INIT_AUTOMAKE, to avoid regressing the suboptimal
but working solution for the use case described above.

See also:
<http://lists.gnu.org/archive/html/automake/2012-08/msg00025.html>

* NEWS: Update.
* m4/init.m4 (AM_INIT_AUTOMAKE): Support once again invocation with
two or three arguments.
* t/aminit-moreargs-no-more.sh: Renamed ...
* t/aminit-moreargs-deprecated.sh: ... like this, and updated.
* t/nodef.sh: Recovered test, with minor adjustments.
* t/backcompat.sh: Likewise.
* t/backcompat2.sh: Likewise.
* t/backcompat3.sh: Likewise.
* t/backcompat6.sh: Likewise.
* t/list-of-tests.mk: Adjust.

Suggested-by: Bob Friesenhahn n<bfriesen@simple.dallas.tx.us>
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agodocs: don't suggest to use recursive makefile setup
Stefano Lattarini [Tue, 21 Aug 2012 13:03:05 +0000 (15:03 +0200)] 
docs: don't suggest to use recursive makefile setup

* doc/automake.texi (Introduction): Here, by erroneously telling that
"there should generally be one Makefile.am per directory of a project".
For reference, see commit 'v1.12.1-25-g61dfb47' of 2012-06-12, "docs:
recursive make considered harmful".

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agotests: fix a timestamp race in python tests
Adam Sampson [Thu, 16 Aug 2012 16:54:41 +0000 (18:54 +0200)] 
tests: fix a timestamp race in python tests

Fixes automake bug#12210.

* t/python-missing.sh: Call aclocal and autoconf with the "--force"
option.  We need this because, on fast machines, it's possible for
'mypy.m4' and 'aclocal.m4' to end up with the same timestamp as configure,
so autoconf (without the "--force" options) wouldn't bother to rebuild it,
and would just rerun the previous AM_PATH_PYTHON test, succeeding rather
than failing as expected.
* t/python-am-path-iftrue.sh: Likewise.

Co-authored-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Copyright-paperwork-exempt: yes
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agotests: fixup: make distcheck-override-infodir pass again
Peter Rosin [Tue, 14 Aug 2012 17:34:10 +0000 (19:34 +0200)] 
tests: fixup: make distcheck-override-infodir pass again

Fixes Automake bug#12198.

* t/distcheck-override-infodir.sh (main.texi): Remove all leading
cruft added by commit v1.12.2-96-g133307b "maintcheck: fix spurious
warnings".

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agosync: update files from upstream with "make fetch"
Stefano Lattarini [Tue, 14 Aug 2012 11:17:57 +0000 (13:17 +0200)] 
sync: update files from upstream with "make fetch"

* lib/config.guess, lib/config.sub, lib/gitlog-to-changelog,
lib/texinfo.tex: Update.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agomaint: post-release minor version bump
Stefano Lattarini [Tue, 14 Aug 2012 11:09:41 +0000 (13:09 +0200)] 
maint: post-release minor version bump

* configure.ac (AC_INIT): Bump version number to 1.12.3a.
* m4/amversion.m4: Likewise (automatically regenerated by
"make bootstrap").

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agocosmetics: fix improper wording in a comment
Stefano Lattarini [Tue, 14 Aug 2012 08:56:37 +0000 (10:56 +0200)] 
cosmetics: fix improper wording in a comment

* t/distdir.sh: Here, in heading comments.

Reported-by: Akim Demaille <akim@lrde.epita.fr>
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agorelease: stable release 1.12.3 v1.12.3
Stefano Lattarini [Mon, 13 Aug 2012 16:43:37 +0000 (18:43 +0200)] 
release: stable release 1.12.3

* configure.ac (AC_INIT): Bump version number to 1.12.3.
* m4/amversion.m4: Likewise (auto-updated by "./bootstrap").

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agomaintcheck: fix spurious warnings
Stefano Lattarini [Mon, 13 Aug 2012 16:00:57 +0000 (18:00 +0200)] 
maintcheck: fix spurious warnings

* t/distcheck-override-infodir.sh: Be sure that valid occurences
of the "aclocal" and "automake" strings, which can confuse the
'sc_tests_plain_automake' check, are protected by leading "#"
characters.
* t/ax/test-lib.sh: Always use '$(...)' for command subtitution,
to avoid triggering the 'sc_tests_command_subst' check; there was
still once place where `...` was used.  While at it, fix a related
comment.
* t/ax/test-defs.in ($sleep): Use creative quoting to avoid
spuriously triggering the 'sc_tests_plain_sleep' check.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agoMerge branches 'ng/dist-work' and 'ng/info-no-split' into ng/master
Stefano Lattarini [Mon, 13 Aug 2012 15:36:03 +0000 (17:36 +0200)] 
Merge branches 'ng/dist-work' and 'ng/info-no-split' into ng/master

* ng/dist-work:
  [ng] rename: am.dist.uninstallcheck-listfiles -> am.dist.uninstallcheck-listfiles
  [ng] dist: new internal API to specify formats of distribution tarballs
  [ng] diag: new make function $(am.fatal)
  [ng] dist: fixup: add 'dist' and 'dist-all' to AM_RECURSIVE_TARGETS
  [ng] distcheck: remove stale tarballs with 'rm -f', not 'rm -rf'
  [ng] dist: vars DIST_TARGETS and DIST_ARCHIVES are no more public
  [ng] dist: refactor: reduce duplication in the 'dist-*' recipes

* ng/info-no-split:
  [ng] texinfo: don't support split info files anymore

12 years ago[ng] rename: am.dist.uninstallcheck-listfiles -> am.dist.uninstallcheck-listfiles
Stefano Lattarini [Sun, 12 Aug 2012 21:15:28 +0000 (23:15 +0200)] 
[ng] rename: am.dist.uninstallcheck-listfiles -> am.dist.uninstallcheck-listfiles

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years ago[ng] dist: new internal API to specify formats of distribution tarballs
Stefano Lattarini [Sun, 12 Aug 2012 18:58:17 +0000 (20:58 +0200)] 
[ng] dist: new internal API to specify formats of distribution tarballs

The API to specify the formats of distribution tarballs has been changed
completely, in a BACKWARD-INCOMPATIBLE way.

Instead of using the various 'dist-*' automake options, the developer is
now expected to specify the default formats of its distribution tarballs
with the special variable AM_DIST_FORMATS; for example, where once would
have been:

    AM_INIT_AUTOMAKE([dist-bzip2 dist-zip])

now it must be:

    AM_DIST_FORMATS = gzip bzip2 zip

and similarly, where once would have been:

    AUTOMAKE_OPTIONS = no-dist-gzip dist-bzip2 dist-xz

now is it simply:

    AM_DIST_FORMATS = bzip2 xz

Similarly, The various 'dist-*' targets (dist-gzip, dist-xz, dist-lzip,
dist-bzip2 and dist-gz) has been removed.  If the user wants to generate
tarballs for formats not specified by the default AM_DIST_FORMATS, he can
simply override that variable dynamically:

    # Will generate a '.zip' archive and a '.tar.xz' archive, and not
    # further ones.
    make dist AM_DIST_FORMATS='zip xz'

This change is of course is totally backward incompatible, but the
enhanced flexibility and simplicity is worth it.  Not to mention that
the transition from the mainline Automake API to the new Automake-NG
one is trivial.

* NG-NEWS: Update.
* ng/automake-ng.texi: Likewise.
* configure.ac (AM_INIT_AUTOMAKE): Drop the 'dist-xz' option.  While
at it, drop the 'color-tests' option (now on by default, even in
coming-soon Automake 1.13) and add the 'ng' option (mostly for some
showing-off :-).
* t/ax/am-test-lib.sh: Also unset 'AM_DIST_FORMATS'.
* Makefile.am (AM_DIST_FORMATS): New, containing 'gzip' ad 'xz' (so
that we distribute the same formats we did before).
* lib/am/distcheck.mk (AM_DIST_FORMATS): New, defaulting to 'gzip'.
(am.dist.bad-targets): New, list invalid entries of $(AM_DIST_FORMATS).
Error out with a suitable message if that variable is non-empty.
Rename all the 'dist-*' targets, once public, to '.am/dist-*' (which
are private).  Adjust their rules.
(am.dist.all-targets): Adjust to said 'dist-*' => '.am/dist-*'
renaming.
(am.dist.default-targets): New, defined from $(AM_DIST_FORMATS).
(dist, dist-all): Rewritten to rely on dependencies rather than on
recursive make invocation (the new API allows us to do so easily).
Other minor related adjustments.
(distcheck): Use $(AM_DIST_FORMATS) instead of $(am.dist.formats)
in the recipe.
* automake.in (handle_dist): Drop analysis of the various 'dist-*'
options, and of the 'no-dist-gzip' one; don't define the internal
make variable 'am.dist.formats'.
* lib/Automake/Options.pm (_is_valid_easy_option): Recognize the
various 'dist-*' options and the 'no-dist-gzip' one no more.
(_process_option_list): Explicitly reject them (to give better
diagnostic).
* t/dist-obsolete-opts.sh: New, check such diagnostic.
* t/dist-obsolete.sh: Remove as obsolete.
* t/repeated-options.sh: Minor adjustments to avoid spurious
failures.
* t/dist-formats.tap: Adjust heavily (almost a complete rewrite).

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years ago[ng] diag: new make function $(am.fatal)
Stefano Lattarini [Sun, 12 Aug 2012 18:42:02 +0000 (20:42 +0200)] 
[ng] diag: new make function $(am.fatal)

Mostly a preparatory patch for future changes.

* lib/am/header-vars.mk (am.fatal): New.
* automake.in (generate_makefile): Use in instead of $(error) in the
generated make code exiting for earlier errors.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years ago[ng] dist: fixup: add 'dist' and 'dist-all' to AM_RECURSIVE_TARGETS
Stefano Lattarini [Sun, 12 Aug 2012 16:14:12 +0000 (18:14 +0200)] 
[ng] dist: fixup: add 'dist' and 'dist-all' to AM_RECURSIVE_TARGETS

* lib/am/distcheck.mk: Here.  That wasn't happing due to a botched
"ifdef", broken by some recent change (probably during the transition
from 'distcheck.am' to 'distcheck.mk').

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years ago[ng] distcheck: remove stale tarballs with 'rm -f', not 'rm -rf'
Stefano Lattarini [Sun, 12 Aug 2012 16:12:01 +0000 (18:12 +0200)] 
[ng] distcheck: remove stale tarballs with 'rm -f', not 'rm -rf'

* lib/am/distcheck.mk (distcheck): Here.  They are regular files
anyway.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years ago[ng] dist: vars DIST_TARGETS and DIST_ARCHIVES are no more public
Stefano Lattarini [Sun, 12 Aug 2012 16:08:25 +0000 (18:08 +0200)] 
[ng] dist: vars DIST_TARGETS and DIST_ARCHIVES are no more public

Turn them into two internal variables.  This will clean up the
interface a bit, and make the new planned dist-related APIs (still
to be implemented) simpler to use.

* lib/am/distcheck.mk (DIST_TARGETS, DIST_ARCHIVES): Rename ...
(am.dist.default-targets, am.dist.default-archives): ... like
these, respectively.
(distcheck, dist, dist-all): Adjust.
* t/dist-formats.tap (nogzip): Likewise.
* NG-NEWS: Update.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years ago[ng] dist: refactor: reduce duplication in the 'dist-*' recipes
Stefano Lattarini [Sun, 12 Aug 2012 14:54:52 +0000 (16:54 +0200)] 
[ng] dist: refactor: reduce duplication in the 'dist-*' recipes

* lib/am/distcheck.mk: Here, with heavy refactorings, in particular
introducing ...
(am.dist.all-formats,
am.dist.all-targets,
am.dist.compress-cmd.gzip,
am.dist.uncompress-cmd.gzip,
am.dist.compress-cmd.bzip2,
am.dist.uncompress-cmd.bzip2,
am.dist.compress-cmd.lzip,
am.dist.uncompress-cmd.lzip
am.dist.compress-cmd.xz,
am.dist.uncompress-cmd.xz,
am.dist.create-cmd.zip,
am.dist.extract-cmd.zip): ... these new internal variables ...
(am.dist.create-archive-for-format.aux,
am.dist.create-archive-for-format,
am.dist.extract-archive-for-format.aux,
am.dist.extract-archive-for-format): ... and these new internal
make functions ...
(am.dist-gzip, am.dist-bzip2, am.dist-lzip, am.dist-xz,
am.dist.zip): ... and rewriting these rules as static-pattern
rules sharing the same recipe ...
(distcheck): ... and updating the recipe for this target.
* t/dist-formats.tap: Little adjustments for better usefulness
of verbose output when debugging.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years ago[ng] texinfo: don't support split info files anymore
Stefano Lattarini [Mon, 13 Aug 2012 13:00:34 +0000 (15:00 +0200)] 
[ng] texinfo: don't support split info files anymore

They were once required for performance or memory-saving reasons; but
such considerations, while certainly relevant in the past, will,
thanks to today's powerful machines, get less and less important in
the future, shrinking to irrelevance soon enough ("soon" for what
concerns the Automake-NG timetable, at least).

So, since the need to cater to split '.info' output files adds some
annoying complexity in some places of the Automake-NG codebase, we
simply stop supporting them.  This change should actually be almost
transparent to the users.

References:
<http://lists.gnu.org/archive/html/automake-ng/2012-08/msg00116.html>
<http://lists.gnu.org/archive/html/texinfo-devel/2012-08/msg00015.html>

* lib/am/texinfos.mk (.am/install-info, uninstall-info-am,
dist-info, am.clean.maint.f): Simplify moderately.
* lib/am/texibuild.mk (am.texi.build.info): Simplify greatly.
* t/txinfo20.sh: Adjust.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agodocs: fix typo: s/make install-info/make uninstall-info/
Stefano Lattarini [Mon, 13 Aug 2012 13:03:43 +0000 (15:03 +0200)] 
docs: fix typo: s/make install-info/make uninstall-info/

* doc/automake.texi (Texinfo): Here.  And a minor wording improvement
while we are at it.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agotests: fixup: make a couple of tests executable
Stefano Lattarini [Mon, 13 Aug 2012 12:38:02 +0000 (14:38 +0200)] 
tests: fixup: make a couple of tests executable

* t/python-am-path-iftrue.sh: This.
* t/python-missing.sh: And this.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agoMerge branch 'master' into ng/master
Stefano Lattarini [Mon, 13 Aug 2012 12:28:52 +0000 (14:28 +0200)] 
Merge branch 'master' into ng/master

* master:
  tests: rework tests on AM_PATH_PYTHON
  cosmetics: fix typos and references in comments
  typofix: in a test diagnostic
  readme: fixlets to HACKING
  cleanup: remove unused transform '%HAVE-MANS%'
  cleanup: remove stale references to 'lzma' option

12 years agoMerge branch 'maint'
Stefano Lattarini [Mon, 13 Aug 2012 12:05:40 +0000 (14:05 +0200)] 
Merge branch 'maint'

* maint:
  tests: rework tests on AM_PATH_PYTHON
  cosmetics: fix typos and references in comments
  typofix: in a test diagnostic
  readme: fixlets to HACKING

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agotests: rework tests on AM_PATH_PYTHON
Stefano Lattarini [Mon, 13 Aug 2012 11:16:49 +0000 (13:16 +0200)] 
tests: rework tests on AM_PATH_PYTHON

* t/python8.sh, t/python9.sh: Merge into ...
* t/python-am-path-iftrue.sh: ... this new test, with minor adjustments.
* t/python4.sh, t/python5.sh, t/python6.sh, t/python7.sh: Merge into ...
* t/python-missing.sh: ... this new test.
* t/python5b.sh: Rename ...
* t/python-too-old.sh: ... like this, and adjust/extend.
* t/list-of-tests.mk: Adjust.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agocosmetics: fix typos and references in comments
Stefano Lattarini [Mon, 13 Aug 2012 10:10:46 +0000 (12:10 +0200)] 
cosmetics: fix typos and references in comments

* lib/am/check.am: Here.
* doc/automake.texi: And here.
* t/*.sh: And in several of these tests.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agotypofix: in a test diagnostic
Stefano Lattarini [Mon, 13 Aug 2012 09:08:43 +0000 (11:08 +0200)] 
typofix: in a test diagnostic

* t/cscope.tap: Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
12 years agoreadme: fixlets to HACKING
Stefano Lattarini [Sun, 12 Aug 2012 19:30:56 +0000 (21:30 +0200)] 
readme: fixlets to HACKING

* HACKING: Use longer "=====" lines to separate different section (this
is just eye-candy admittedly, but I prefer it).
(Release procedure): Don't tell to "update NEWS"; that should be updated
throughout the normal course of development.  Instead, tell to just check
it.  Improve description of the re-bootstrapping and rechecking procedure,
also suggesting to use "git clean" beforehand (with all due warnings!).

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] typofix: in comments in 'lib/am/distdir.mk'
Stefano Lattarini [Sun, 12 Aug 2012 13:14:06 +0000 (15:14 +0200)] 
[ng] typofix: in comments in 'lib/am/distdir.mk'

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] cosmetics: add an explicative comment
Stefano Lattarini [Sun, 12 Aug 2012 13:12:54 +0000 (15:12 +0200)] 
[ng] cosmetics: add an explicative comment

* lib/am/distdir.mk (am.dist.common-files): Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] tests: remove dead code from a test, fix a typo
Stefano Lattarini [Sun, 12 Aug 2012 13:02:33 +0000 (15:02 +0200)] 
[ng] tests: remove dead code from a test, fix a typo

* t/dist-formats.tap: Fix typo in a message: s/.tar.Z/.tar.xz/.
(have_compressor): Remove special handling of the 'compress' tool.
This is now useless, since we've removed support for '.tar.Z' tarballs
and thus care no more whether a 'compress' program is available or not.
Also, in the main code, one stray remaining reference to the 'shar'
program, that too useless now that we've removed support for '.shar.gz'
archives.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] cleanup: remove unused transform '%INSTALL-INFO%'
Stefano Lattarini [Sun, 12 Aug 2012 12:52:32 +0000 (14:52 +0200)] 
[ng] cleanup: remove unused transform '%INSTALL-INFO%'

* automake.in (preprocess_file): Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] texi: verbatim include of rules for texinfo installation
Stefano Lattarini [Sun, 12 Aug 2012 12:09:34 +0000 (14:09 +0200)] 
[ng] texi: verbatim include of rules for texinfo installation

It tells whether the '.info' files must be installed by default (usually
yes, unless the "no-installinfo" automake option is used).  This is just
a preparatory change, in view of future ones.

* lib/am/texinfos.am: Move ...
* lib/am/texinfos.mk: ... here, with related adjustments.  Also ...
(info_TEXINFOS): ... initialize this to empty by default.
* lib/am/automake.in (handle_texinfo): Adjust and simplify accordingly.
* Makefile.am (dist_am_DATA): Adjust.
* t/txinfo10.sh: Remove, basically an obsolete grepping check.  We can
instead ...
* t/txinfo21.sh: ... enhance this semantic test to subsume and supersede
the removed one.
* t/override-conditional-1.sh: Adjust to avoid spurious failures.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agoMerge branch 'maint'
Stefano Lattarini [Sun, 12 Aug 2012 12:12:52 +0000 (14:12 +0200)] 
Merge branch 'maint'

* maint:
  cleanup: remove stale references to 'lzma' option

13 years ago[ng] refactor: new internal make variable 'am.conf.no-installinfo'
Stefano Lattarini [Sun, 12 Aug 2012 11:56:01 +0000 (13:56 +0200)] 
[ng] refactor: new internal make variable 'am.conf.no-installinfo'

It tells whether the '.info' files must be installed by default (usually
yes, unless the "no-installinfo" automake option is used).  This is just
a preparatory change, in view of future ones.

* lib/am/automake.in (generate_makefile): Define it here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__can_run_installinfo -> am.texi.can-run-installinfo
Stefano Lattarini [Sun, 12 Aug 2012 11:54:29 +0000 (13:54 +0200)] 
[ng] rename: am__can_run_installinfo -> am.texi.can-run-installinfo

* lib/am/texinfos.am: Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agocleanup: remove unused transform '%HAVE-MANS%'
Stefano Lattarini [Sun, 12 Aug 2012 11:43:54 +0000 (13:43 +0200)] 
cleanup: remove unused transform '%HAVE-MANS%'

* automake.in (preprocess_file): Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__create_installdir -> am.texi.create-installdir
Stefano Lattarini [Sun, 12 Aug 2012 11:23:06 +0000 (13:23 +0200)] 
[ng] rename: am__create_installdir -> am.texi.create-installdir

* lib/am/texinfos.am: Here.  And fix a related comment while at it.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__info_insrc -> am.texi.info-in-srcdir
Stefano Lattarini [Sun, 12 Aug 2012 10:14:07 +0000 (12:14 +0200)] 
[ng] rename: am__info_insrc -> am.texi.info-in-srcdir

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] texi: prefer $(CURDIR) over `pwd` in recipes
Stefano Lattarini [Sun, 12 Aug 2012 10:12:22 +0000 (12:12 +0200)] 
[ng] texi: prefer $(CURDIR) over `pwd` in recipes

* lib/am/texibuild.mk: Here.  We can do so because the involved
recipes did not chdir before invoking `pwd`.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] texi: be more aware of possible failures in recipes
Stefano Lattarini [Sun, 12 Aug 2012 09:47:58 +0000 (11:47 +0200)] 
[ng] texi: be more aware of possible failures in recipes

* lib/am/texibuild.mk: Here, mostly by using "cmd1 && cmd2" or
"cmd1 || exit $?; cmd2" rather than "cmd1; cmd2" in some places.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] cosmetics: add a short explicative comment
Stefano Lattarini [Sun, 12 Aug 2012 09:36:34 +0000 (11:36 +0200)] 
[ng] cosmetics: add a short explicative comment

* lib/am/texibuild.mk (am.texi.build.html): Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] texi: remove workaround for Texinfo 4.1
Stefano Lattarini [Sun, 12 Aug 2012 09:35:57 +0000 (11:35 +0200)] 
[ng] texi: remove workaround for Texinfo 4.1

* lib/am/texibuild.mk (am.texi.build.html): Here.  We require
Texinfo >= 4.9 anyway.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] texi: respect user-requested verbosity better
Stefano Lattarini [Sun, 12 Aug 2012 09:07:00 +0000 (11:07 +0200)] 
[ng] texi: respect user-requested verbosity better

* lib/am/texibuild.mk (am.texi.build.info): Here, by not hiding the
creation of the directory containing the target info when "make V=1"
is used (or "./configure --disable-silent-rules").

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] cosmetics: remove a stray empty line
Stefano Lattarini [Sun, 12 Aug 2012 09:04:31 +0000 (11:04 +0200)] 
[ng] cosmetics: remove a stray empty line

* lib/am/texibuild.mk (am.texi.build.dvi-or-pdf): Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__texibuild_info -> am.texi.build.info
Stefano Lattarini [Sun, 12 Aug 2012 09:03:57 +0000 (11:03 +0200)] 
[ng] rename: am__texibuild_info -> am.texi.build.info

* lib/am/texibuild.mk: Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__texibuild_html -> am.texi.build.html
Stefano Lattarini [Sun, 12 Aug 2012 09:02:21 +0000 (11:02 +0200)] 
[ng] rename: am__texibuild_html -> am.texi.build.html

* lib/am/texibuild.mk: Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__texibuild_dvi_or_pdf -> am.texi.build.dvi-or-pdf
Stefano Lattarini [Sun, 12 Aug 2012 09:00:45 +0000 (11:00 +0200)] 
[ng] rename: am__texibuild_dvi_or_pdf -> am.texi.build.dvi-or-pdf

* lib/am/texibuild.mk: Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] tests: avoid spurious error with ctags from older Emacs and XEmacs
Stefano Lattarini [Sat, 11 Aug 2012 21:53:20 +0000 (23:53 +0200)] 
[ng] tests: avoid spurious error with ctags from older Emacs and XEmacs

* t/ctags.sh: Here.  Those ctags (from Emacs 22.3 and XEmacs 21.5)
apparently have problems grasping "#define" in header files; feed
them an inline function instead.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] tests init: honour $ETAGS variable for etags requirement
Stefano Lattarini [Sat, 11 Aug 2012 21:24:55 +0000 (23:24 +0200)] 
[ng] tests init: honour $ETAGS variable for etags requirement

* t/ax/am-test-lib.sh (require_tool): Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] tests: allow overriding of etags/ctags programs
Stefano Lattarini [Sat, 11 Aug 2012 21:08:11 +0000 (23:08 +0200)] 
[ng] tests: allow overriding of etags/ctags programs

* t/ctags.sh, t/etags.sh: Here, for better coverage and debuggability.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] tests: avoid a spurious failure on OpenIndiana
Stefano Lattarini [Sat, 11 Aug 2012 20:49:00 +0000 (22:49 +0200)] 
[ng] tests: avoid a spurious failure on OpenIndiana

* t/autodist.sh: Ensure that the 'install-sh' script has legit content,
because it's going to be used by the "make distdir" target on systems
lacking a decent 'install' program.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] contrib: rewrite and fix 'check-html' and 'recheck-html'
Stefano Lattarini [Sat, 11 Aug 2012 19:51:28 +0000 (21:51 +0200)] 
[ng] contrib: rewrite and fix 'check-html' and 'recheck-html'

That has actually been broken for some time, due to the changes
done in Automake-NG proper in the meantime.

* contrib/check-html.am (.log.html): Re-declare this suffix rule ...
(%.html: %.log): ... as a pattern rule.
(mostlyclean-check-html): Remove, instead ...
(MOSTLYCLEANFILES): ... appending to this variable.  Not only this
reduce the code size, but will give us resilience against possible
exceeded command line length limits for free.
(check-html, recheck-html): Rewrite as static pattern rules.  Fix
the recursive "make check" and "make recheck" invocation to override
TESTS, not TEST_LOGS (the latter override is not honoured anymore
by the new incarnation of the parallel-test rules).
* contrib/t/parallel-tests-html-recursive.sh: Adjust a little, by
initializing 'MOSTLYCLEANFILES' (to empty) in all the 'Makefile.am'
files that use 'check-html.am'.
* contrib/t/parallel-tests-html.sh: Likewise.  Also, since the
parallel-tests API does not allow command-line overriding of
TEST_LOGS anymore, stop doing that.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__config_distclean_files -> am.clean.config-files
Stefano Lattarini [Sat, 11 Aug 2012 19:13:43 +0000 (21:13 +0200)] 
[ng] rename: am__config_distclean_files -> am.clean.config-files

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: 'am--*' -> '.am/*' for internal Texinfo-related targets
Stefano Lattarini [Sat, 11 Aug 2012 19:05:42 +0000 (21:05 +0200)] 
[ng] rename: 'am--*' -> '.am/*' for internal Texinfo-related targets

* lib/am/texinfos.am: Here; these being the complete list of renames:

    am--install-dvi  -> .am/install-dvi
    am--install-ps   -> .am/install-ps
    am--install-pdf  -> .am/install-pdf
    am--install-info -> .am/install-info
    am--install-html -> .am/install-html

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] refactor: in declaration of Texinfo-related files to be cleaned
Stefano Lattarini [Sat, 11 Aug 2012 18:29:20 +0000 (20:29 +0200)] 
[ng] refactor: in declaration of Texinfo-related files to be cleaned

Less code, less variables, better locality.

* automake.in (handle_texinfo_helper ): Update '%clean_dirs' and
'%clean_files' from here, rather than returning the files to clean
as a triplet.
(handle_texinfo): Adjust and simplify.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] texi: less use of transforms in 'texinfos.am'
Stefano Lattarini [Sat, 11 Aug 2012 18:06:14 +0000 (20:06 +0200)] 
[ng] texi: less use of transforms in 'texinfos.am'

* automake.in (handle_texinfo): Drop the 'MOSTLYCLEAN', 'TEXICLEAN'
and 'MAINTCLEAN' transforms, instead adding directly to '%clean_dirs'
as appropriate.
* lib/am/texinfos.am: Adjust.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] cleanup: drop a redundant %?FIRST% transform
Stefano Lattarini [Sat, 11 Aug 2012 17:36:08 +0000 (19:36 +0200)] 
[ng] cleanup: drop a redundant %?FIRST% transform

* lib/am/texinfos.am: Here: this file is only included one time
per Makefile by Automake.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] diagnostic: don't bother explicitly rejecting ansi2knr stuff
Stefano Lattarini [Sat, 11 Aug 2012 17:21:58 +0000 (19:21 +0200)] 
[ng] diagnostic: don't bother explicitly rejecting ansi2knr stuff

That is, fail through the usual avenues ("possibly undefined macro
'AM_C_PROTOTYPES', "option 'ansi2knr' not recognized") rather than
giving a special error message "automatic de-ANSI-fication support
has been removed".  Since the removal has taken place in Automake 1.12
already, people will have got used to it once Automake-NG gets stable
enough.

* lib/Automake/Options.pm (_process_option_list): Remove special
handling of 'ansi2knr' option.
* m4/protos.m4: Remove.
* Makefile.am (dist_automake_ac_DATA): Adjust.
* t/ansi2knr-no-more.sh: Remove.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] subdirs: merge $(RECURSIVE_CLEAN_TARGETS) into $(RECURSIVE_TARGETS)
Stefano Lattarini [Sat, 11 Aug 2012 16:59:35 +0000 (18:59 +0200)] 
[ng] subdirs: merge $(RECURSIVE_CLEAN_TARGETS) into $(RECURSIVE_TARGETS)

* lib/am/subdirs.mk: Here.  They had once been separated for historical
reasons, but such separation is not needed anymore today.
* NG-NEWS: Update.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__recursive_targets -> am.recurs.all-targets
Stefano Lattarini [Sat, 11 Aug 2012 16:52:02 +0000 (18:52 +0200)] 
[ng] rename: am__recursive_targets -> am.recurs.all-targets

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] subdirs: verbatim include of relevant makefile fragment
Stefano Lattarini [Sat, 11 Aug 2012 16:18:18 +0000 (18:18 +0200)] 
[ng] subdirs: verbatim include of relevant makefile fragment

* lib/am/subdirs.am: Rename ...
* lib/am/subdirs.mk: ... like this.  Prefer '#' comments over
'##' ones.
* automake.in (handle_subdirs): Include it with the 'verbatim'
function rather than with the 'file_contents' one.
(generate_makefile): Move its call later.  This is actually required
to avoid spurious failures.
* Makefile.am (dist_am_DATA): Adjust.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__extra_recursive_targets -> am.recurs.extra-targets
Stefano Lattarini [Sat, 11 Aug 2012 16:05:57 +0000 (18:05 +0200)] 
[ng] rename: am__extra_recursive_targets -> am.recurs.extra-targets

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] dist: cosmetics: improve output from "make dist"
Stefano Lattarini [Sat, 11 Aug 2012 14:53:17 +0000 (16:53 +0200)] 
[ng] dist: cosmetics: improve output from "make dist"

* lib/am/distdir.mk: Here, ensuring that the parts of the 'distdir'
recipe that can be judged not to be needed are not even considered
nor outputted.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] dist: don't ignore errors in fixing permissions of distributed files
Stefano Lattarini [Sat, 11 Aug 2012 14:45:42 +0000 (16:45 +0200)] 
[ng] dist: don't ignore errors in fixing permissions of distributed files

* lib/am/distdir.mk (distdir): Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] dist: cosmetic/clarity improvements
Stefano Lattarini [Sat, 11 Aug 2012 13:02:01 +0000 (15:02 +0200)] 
[ng] dist: cosmetic/clarity improvements

* lib/am/distdir.mk: Here, using the fact that this file is now included
verbatim and we can thus use GNU make constructs that would have confused
the Automake parser.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] dist: fixup: honour DIST_SUBDIRS rather than SUBDIRS in conditionals
Stefano Lattarini [Sat, 11 Aug 2012 13:52:15 +0000 (15:52 +0200)] 
[ng] dist: fixup: honour DIST_SUBDIRS rather than SUBDIRS in conditionals

Regression introduced in recent patches, and revealed by a failure in
test 't/subpkg2.sh'.

* lib/am/distdir.mk: Here, throughout the file.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] tests: fix spurious testsuite failures introduced by recent changes
Stefano Lattarini [Sat, 11 Aug 2012 13:18:34 +0000 (15:18 +0200)] 
[ng] tests: fix spurious testsuite failures introduced by recent changes

* t/distcom2.sh: Remove as basically obsolete.
* t/distcom3.sh: Use semantic checks rather than brittle grepping checks.
* t/hdr-vars-defined-once.sh: Likewise.
* t/location.sh: Remove some checks that would become too cumbersome to
run.
* t/targetclash.sh: Adjust to ensure the expected automake diagnostic is
actually triggered.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] distdir: verbatim inclusion of relevant makefile fragment
Stefano Lattarini [Sat, 11 Aug 2012 12:42:23 +0000 (14:42 +0200)] 
[ng] distdir: verbatim inclusion of relevant makefile fragment

* lib/am/distdir.am: Rename ...
* lib/am/distdir.mk: ... like here, with related adjustments.
* automake.in (handle_dist): Include it using the 'verbatim'
function, rather than the 'file_contents' one.
* Makefile.am (dist_am_DATA): Adjust.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] cleanup: remove a now-unused variable
Stefano Lattarini [Sat, 11 Aug 2012 12:34:20 +0000 (14:34 +0200)] 
[ng] cleanup: remove a now-unused variable

* automake.in (handle_dist): Here: '%transform'.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] dist: less use of transforms, prefer make variables (4)
Stefano Lattarini [Sat, 11 Aug 2012 12:14:32 +0000 (14:14 +0200)] 
[ng] dist: less use of transforms, prefer make variables (4)

* automake.in (preprocess_file): Turn the '%CK-NEWS%' transform into ...
(generate_makefile): ... the '$(am.conf.check-news)' internal variable.
* lib/am/distdir.am (distdir): Adjust accordingly.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] dist: less use of transforms, prefer make variables (3)
Stefano Lattarini [Sat, 11 Aug 2012 12:09:25 +0000 (14:09 +0200)] 
[ng] dist: less use of transforms, prefer make variables (3)

* automake.in (handle_dist): Turn the '%DIST-COMMON%' transform
into the 'am.dist.common-files.internal' internal variable.
* lib/am/distdir.am (distdir): Adjust accordingly.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] dist: less use of transforms, prefer make variables (2)
Stefano Lattarini [Sat, 11 Aug 2012 12:05:43 +0000 (14:05 +0200)] 
[ng] dist: less use of transforms, prefer make variables (2)

* automake.in (handle_dist): Turn the '%DIST-TARGETS%' transform
into the 'am.dist.extra-targets' internal variable.
* lib/am/distdir.am (distdir): Adjust and simplify accordingly.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] dist: less use of transforms, prefer make variables (1)
Stefano Lattarini [Sat, 11 Aug 2012 11:52:54 +0000 (13:52 +0200)] 
[ng] dist: less use of transforms, prefer make variables (1)

* automake.in (handle_dist): Turn the '%FILENAME_FILTER%' transform
into the 'am.dist.filename-filter' internal variable.
* lib/am/distdir.am (distdir): Adjust and simplify accordingly (and
improve an error message while at it).  In particular, this removed
the need for ...
(am.dist.skip-length-check): ... this variable.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] tests: fix a spurious failure
Stefano Lattarini [Sat, 11 Aug 2012 11:51:21 +0000 (13:51 +0200)] 
[ng] tests: fix a spurious failure

* t/output11.sh: Here: some grepping checks had been broken by the
recent changes.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] dist: enhance comments; prefer '#' over '##' where possible
Stefano Lattarini [Sat, 11 Aug 2012 11:36:43 +0000 (13:36 +0200)] 
[ng] dist: enhance comments; prefer '#' over '##' where possible

* lib/am/distdir.am: Here, throughout the file, to make the output
makefile more comprehensible.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__skip_mode_fix -> am.dist.skip-mode-fix
Stefano Lattarini [Sat, 11 Aug 2012 11:07:29 +0000 (13:07 +0200)] 
[ng] rename: am__skip_mode_fix -> am.dist.skip-mode-fix

* lib/am/distdir.am: Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__skip_length_check -> am.dist.skip-length-check
Stefano Lattarini [Sat, 11 Aug 2012 11:05:48 +0000 (13:05 +0200)] 
[ng] rename: am__skip_length_check -> am.dist.skip-length-check

* lib/am/distdir.am: Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] dist: avoid few extra forks when descending in $(SUBDIRS)
Stefano Lattarini [Sat, 11 Aug 2012 10:21:41 +0000 (12:21 +0200)] 
[ng] dist: avoid few extra forks when descending in $(SUBDIRS)

* lib/am/distdir.am (distdir) [%?SUBDIRS%]: Here, by using
"make -C subdir distdir" rather than "(cd subdir && make distdir)".

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] dist: cosmetic fix of "make dist" output
Stefano Lattarini [Sat, 11 Aug 2012 09:56:35 +0000 (11:56 +0200)] 
[ng] dist: cosmetic fix of "make dist" output

* lib/am/distdir.am (distdir) [%?SUBDIRS%]: Here, by removing details
no one is (or should) actually be interested to see.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] dist: fixup: remove stray references to obsolete archive formats
Stefano Lattarini [Sat, 11 Aug 2012 09:53:05 +0000 (11:53 +0200)] 
[ng] dist: fixup: remove stray references to obsolete archive formats

* automake.in (handle_dist): Here, to 'shar' and 'tarZ'.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] dist: fixup: run slower compressors first
Stefano Lattarini [Sat, 11 Aug 2012 09:45:57 +0000 (11:45 +0200)] 
[ng] dist: fixup: run slower compressors first

For better parallelism in "make dist".  This was already the case
for mainline Automake, but our recent changes to the dist-related
code in Automake-NG had broken that invariant.

* automake.in (handle_dist): Here, use 'unshift' rather than
'push' on '@archive_formats'.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] dist: move a comment to a more proper place
Stefano Lattarini [Sat, 11 Aug 2012 09:40:41 +0000 (11:40 +0200)] 
[ng] dist: move a comment to a more proper place

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] dist: more verbatim inclusion of relevant makefile fragments
Stefano Lattarini [Sat, 11 Aug 2012 09:37:27 +0000 (11:37 +0200)] 
[ng] dist: more verbatim inclusion of relevant makefile fragments

* lib/am/distdir.am: Move most of the '%?TOPDIR_P%'-protected, verbatim
stuff (i.e., containing no Automake-time transforms) from here ...
* lib/am/distcheck.mk: ... to here, with related adjustments.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__post_remove_distdir -> am.dist.post-remove-distdir
Stefano Lattarini [Sat, 11 Aug 2012 09:24:49 +0000 (11:24 +0200)] 
[ng] rename: am__post_remove_distdir -> am.dist.post-remove-distdir

* lib/am/distdir.am: Here.
* lib/am/distcheck.mk: And here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__remove_distdir -> am.dist.remove-distdir
Stefano Lattarini [Sat, 11 Aug 2012 09:22:12 +0000 (11:22 +0200)] 
[ng] rename: am__remove_distdir -> am.dist.remove-distdir

* lib/am/distdir.am: Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] dist: remove obsolete distribution formats
Stefano Lattarini [Sat, 11 Aug 2012 08:59:32 +0000 (10:59 +0200)] 
[ng] dist: remove obsolete distribution formats

Those formats being the 'shar' archive and the tar archive compressed
with 'compress'.  Support for them is kept in mainline Automake for
the sake of backward compatibility only, and modern software releases
should not use those formats anyway, so it's better if we just remove
them.

* NG-NEWS, doc/automake-ng.texi: Update.
* lib/Automake/Options.pm (_is_valid_easy_option): Remove 'dist-shar'
and 'dist-tarZ'.
(_process_option_list): Give a fatal error if one of those two options
is seen.
* lib/am/distdir.am (am.dist.ext.tarZ, am.dist.ext.shar): Remove these
variables.
(dist-tarZ, dist-shar): And these targets.
* lib/am/distcheck.mk (distcheck): Do not try to decompress '.shar.gz'
or '.tar.Z' archives: they won't be there anyway.
* t/dist-formats.tap: Adjust and simplify.
* t/dist-obsolete.sh: New test.
* t/lzma.sh: Remove, subsumed by it.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] dist: refactor handling of dist formats a little
Stefano Lattarini [Fri, 10 Aug 2012 23:41:26 +0000 (01:41 +0200)] 
[ng] dist: refactor handling of dist formats a little

* automake.in (handle_dist): Define list of default dist formats in the
new internal make variable 'am.dist.formats'.  Related adjustments.
(preprocess_file): Drop the following now-unused transforms: XZ, LZMA,
LZIP, BZIP2, COMPRESS, GZIP, SHAR, ZIP.
* lib/am/distdir.am: Drop any use of the removed transforms, throughout.
(DIST_TARGETS): Redefine in function of '$(am.dist.formats)'.
(.PHONY): Update in function of '$(am.dist.formats)'.
(am.dist.ext.gzip, am.dist.ext.bzip2, am.dist.ext.xz, am.dist.ext.lzip,
am.dist.ext.tarZ, am.dist.ext.shar, am.dist.ext.zip): New internal
variables.
(DIST_ARCHIVES): Redefine in function of them and of '$(am.dist.formats)'.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agocleanup: remove stale references to 'lzma' option
Stefano Lattarini [Fri, 10 Aug 2012 22:56:11 +0000 (00:56 +0200)] 
cleanup: remove stale references to 'lzma' option

* automake.in (preprocess_file): Here.
(handle_dist): And here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am.write-list-of-distfiles -> am.dist.write-filelist
Stefano Lattarini [Fri, 10 Aug 2012 17:47:37 +0000 (19:47 +0200)] 
[ng] rename: am.write-list-of-distfiles -> am.dist.write-filelist

* lib/am/distdir.am: Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am.mkdir-for-dist -> am.dist.xmkdir
Stefano Lattarini [Fri, 10 Aug 2012 17:46:24 +0000 (19:46 +0200)] 
[ng] rename: am.mkdir-for-dist -> am.dist.xmkdir

* lib/am/distdir.am: Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] distcheck: include it as a verbatim makefile fragment
Stefano Lattarini [Fri, 10 Aug 2012 17:07:04 +0000 (19:07 +0200)] 
[ng] distcheck: include it as a verbatim makefile fragment

* lib/am/distcheck.am: Rename ...
* lib/am/distcheck.mk: ... like this, and adjust to use GNU
make conditionals rather than Automake ones, and to allow for
user overrides of the '$(distcleancheck_listfiles)' variable.
Fix some comments while at it.
* automake.in (handle_dist): Include it suing the 'verbatim'
function.
* Makefile.am (dist_am_DATA): Adjust.
* t/distcheck-configure-flags-am.sh: Remove obsolete grepping
checks, that would cause the test to fails spuriously.
* t/distcheck-configure-flags.sh: Likewise.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] distcheck: move in its own '*.am' fragment
Stefano Lattarini [Fri, 10 Aug 2012 16:41:09 +0000 (18:41 +0200)] 
[ng] distcheck: move in its own '*.am' fragment

* lib/am/distdir.am: From here ...
* lib/am/distcheck.am: ... to here.  That is especially useful because
all of the 'distcheck' target has to be protected by a if '%?TOPDIR_P%'
conditional (since the 'distcheck' target must only be present in the
top-level makefile), so that we can now remove this overly long
conditional from this fragment ...
* automake.in (handle_dist): ... and simply limiting the inclusion
of it to when '$reldir' is '.'.
* Makefile.am (dist_am_DATA): Adjust.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>