[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Automake-NG] [PATCH 17/26] [ng] texi: always look for mdate-sh in the b
From: |
Stefano Lattarini |
Subject: |
[Automake-NG] [PATCH 17/26] [ng] texi: always look for mdate-sh in the build-aux directory ... |
Date: |
Sat, 16 Jun 2012 23:30:04 +0200 |
... rather than in the current directory if the path of the build-aux
directory had been determined automatically and not explicitly specified
through an A_CONFIG_AUX_DIR invocation. This rid us of an ugly
inconsistency wart that was only present for historical reasons.
* automake.in (handle_texinfo_helper): Do not look for the required file
'mdate-sh' in the current directory if $config_aux_dir_set_in_configure_ac
is false; unconditionally look for it in the build-aux directory.
* lib/am/texi-vers.am: Simplify accordingly, getting rid of the (now
undefined by automake) transform %MDDIR%.
* t/mdate4.sh: Remove as obsolete.
* t/vtexi.sh: Remove an hairy and obsolescent grepping check, to avoid
spurious failures.
* t/reqd.sh: Adjust not to check for multiple installations of mdate-sh;
these don't take place anymore.
Signed-off-by: Stefano Lattarini <address@hidden>
---
automake.in | 26 +++-----------------------
lib/am/texi-vers.am | 2 +-
t/mdate4.sh | 46 ----------------------------------------------
t/reqd.sh | 10 ++++------
t/vtexi.sh | 6 ------
5 files changed, 8 insertions(+), 82 deletions(-)
delete mode 100755 t/mdate4.sh
diff --git a/automake.in b/automake.in
index 59156bd..0d98dba 100644
--- a/automake.in
+++ b/automake.in
@@ -3066,34 +3066,14 @@ sub handle_texinfo_helper ($)
my $vti = ($done ? $done : 'vti');
++$done;
- # This is ugly, but it is our historical practice.
- if ($config_aux_dir_set_in_configure_ac)
- {
- require_conf_file_with_macro (TRUE, 'info_TEXINFOS', FOREIGN,
- 'mdate-sh');
- }
- else
- {
- require_file_with_macro (TRUE, 'info_TEXINFOS',
- FOREIGN, 'mdate-sh');
- }
-
- my $conf_dir;
- if ($config_aux_dir_set_in_configure_ac)
- {
- $conf_dir = '$(am__config_aux_dir)/';
- }
- else
- {
- $conf_dir = '$(srcdir)/';
- }
+ require_conf_file_with_macro (TRUE, 'info_TEXINFOS',
+ FOREIGN, 'mdate-sh');
$output_rules .= file_contents ('texi-vers',
new Automake::Location,
TEXI => $texi,
VTI => $vti,
STAMPVTI => "${soutdir}stamp-$vti",
- VTEXI => "$soutdir$vtexi",
- MDDIR => $conf_dir);
+ VTEXI => "$soutdir$vtexi");
}
}
diff --git a/lib/am/texi-vers.am b/lib/am/texi-vers.am
index 78c107d..ec2f366 100644
--- a/lib/am/texi-vers.am
+++ b/lib/am/texi-vers.am
@@ -28,7 +28,7 @@ am__dist_common += %VTEXI% %STAMPVTI%
## in this file.)
%STAMPVTI%: %TEXI% $(top_srcdir)/configure
@$(am__ensure_target_dir_exists)
- @(set `$(SHELL) %MDDIR%mdate-sh $<`; \
+ @(set `$(SHELL) $(am__config_aux_dir)/mdate-sh $<`; \
echo "@set UPDATED $$1 $$2 $$3"; \
echo "@set UPDATED-MONTH $$2 $$3"; \
echo "@set EDITION $(VERSION)"; \
diff --git a/t/mdate4.sh b/t/mdate4.sh
deleted file mode 100755
index ac1be3a..0000000
--- a/t/mdate4.sh
+++ /dev/null
@@ -1,46 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2001-2012 Free Software Foundation, Inc.
-#
-# This program 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.
-#
-# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
-
-# Test to make sure that mdate-sh is added to the right directory.
-# Report from Kevin Dalley.
-
-. ./defs || Exit 1
-
-cat >> configure.ac << 'END'
-AC_CONFIG_FILES([sub/Makefile])
-END
-
-cat > Makefile.am << 'END'
-SUBDIRS = sub
-END
-
-mkdir sub
-
-cat > sub/Makefile.am << 'END'
-info_TEXINFOS = textutils.texi
-END
-
-cat > sub/textutils.texi << 'END'
address@hidden version.texi
address@hidden textutils.info
-END
-
-$ACLOCAL
-$AUTOMAKE -a
-ls -l sub
-test -f sub/mdate-sh
-
-:
diff --git a/t/reqd.sh b/t/reqd.sh
index 9e0bcc1..1ddac46 100755
--- a/t/reqd.sh
+++ b/t/reqd.sh
@@ -28,18 +28,16 @@ mkdir one
mkdir two
echo 'SUBDIRS = one two' > Makefile.am
+
echo 'info_TEXINFOS = mumble.texi' > one/Makefile.am
-cat >one/mumble.texi <<'END'
address@hidden mumble.info
address@hidden version.texi
-END
+echo @setfilename mumble.info > one/mumble.texi
cp one/Makefile.am one/mumble.texi two
$ACLOCAL
$AUTOMAKE --add-missing --copy
-test -f one/mdate-sh
test -f one/texinfo.tex
-test -f two/mdate-sh
test -f two/texinfo.tex
+
+:
diff --git a/t/vtexi.sh b/t/vtexi.sh
index 9d1bc24..b3035ed 100755
--- a/t/vtexi.sh
+++ b/t/vtexi.sh
@@ -53,10 +53,4 @@ grep '^\$(srcdir)/textutils\.info:.*[ /]version\.texi *$'
Makefile.in
$EGREP 'stamp-vti:.*textutils\.texi( .*)?$' Makefile.in
$EGREP 'stamp-vti:.*\$\(top_srcdir\)/configure( .*)?$' Makefile.in
-# Check that the path to mdate-sh is correct. Over escaping of '$'
-# etc. once led to '\$\(srcdir\)/mdate-sh'.
-# Filter out '$(srcdir)/mdate-sh'; there should be no occurrences
-# of '.../mdate-sh' left then.
-sed 's,\$(srcdir)/mdate-sh,,g' Makefile.in | grep '/mdate-sh' && Exit 1
-
:
--
1.7.9.5
- [Automake-NG] [PATCH 12/26] [ng] texi: reorganize '.am' fragments even more, (continued)
- [Automake-NG] [PATCH 12/26] [ng] texi: reorganize '.am' fragments even more, Stefano Lattarini, 2012/06/16
- [Automake-NG] [PATCH 13/26] [ng] texi: drop transforms when reading texibuild.am, Stefano Lattarini, 2012/06/16
- [Automake-NG] [PATCH 14/26] [ng] texi: adjust names of vars used for silent rules support, Stefano Lattarini, 2012/06/16
- [Automake-NG] [PATCH 15/26] [ng] texi: drop a useless transform when processing texinfos.am, Stefano Lattarini, 2012/06/16
- [Automake-NG] [PATCH 16/26] [ng] refactor: more proper name for a subroutine in automake, Stefano Lattarini, 2012/06/16
- [Automake-NG] [PATCH 17/26] [ng] texi: always look for mdate-sh in the build-aux directory ...,
Stefano Lattarini <=
- [Automake-NG] [PATCH 18/26] [ng] coverage: texinfo input files using @include directives, Stefano Lattarini, 2012/06/16
- [Automake-NG] [PATCH 19/26] [ng] automake: remove two unused variables from '&handle_texinfo_source', Stefano Lattarini, 2012/06/16
- [Automake-NG] [PATCH 21/26] [ng] texi: move some more knowledge from automake to texi-spec.am, Stefano Lattarini, 2012/06/16