[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Automake-NG] [PATCH 22/26] [ng] texi: simplify handle_texinfo_source by
From: |
Stefano Lattarini |
Subject: |
[Automake-NG] [PATCH 22/26] [ng] texi: simplify handle_texinfo_source by assuming '.info' suffix ... |
Date: |
Sat, 16 Jun 2012 23:30:09 +0200 |
... for the output info files.
* automake.in (handle_texinfo_source): Here, in particular removing
the local variable '$dsfx'.
Signed-off-by: Stefano Lattarini <address@hidden>
---
automake.in | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/automake.in b/automake.in
index 02b75b7..cfba415 100644
--- a/automake.in
+++ b/automake.in
@@ -2852,13 +2852,12 @@ sub handle_texinfo_source ($$$@)
{
my ($source, $dest, $insrc, @deps) = @_;
- my ($dpfx, $dsfx) = ($dest =~ /^(.*?)(\.[^.]*)?$/);
-
my $sdir = dirname $source;
my $makeinfoflags = ($sdir eq '.' && dirname ($dest) eq '.')
? '-I $(srcdir)'
: "-I $sdir -I \$(srcdir)/$sdir";
+ (my $dpfx = $dest) =~ s/\.info$//;
$output_rules .= file_contents ('texi-spec',
new Automake::Location,
DEPS => "@deps",
--
1.7.9.5
- Re: [Automake-NG] [PATCH 17/26] [ng] texi: always look for mdate-sh in the build-aux directory ..., (continued)
- [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
- [Automake-NG] [PATCH 22/26] [ng] texi: simplify handle_texinfo_source by assuming '.info' suffix ...,
Stefano Lattarini <=
- [Automake-NG] [PATCH 23/26] [ng] automake: merge handle_texinfo_source() -> handle_texinfo_helper(), Stefano Lattarini, 2012/06/16
- [Automake-NG] [PATCH 20/26] [ng] texi: in texi-spec.am, assume suffix for info files is always '.info', Stefano Lattarini, 2012/06/16
- [Automake-NG] [PATCH 24/26] [ng] texi: "de-prettify" makeinfo command line, Stefano Lattarini, 2012/06/16
- [Automake-NG] [PATCH 25/26] [ng] texi: move more code from automake to Makefile, Stefano Lattarini, 2012/06/16
- [Automake-NG] [PATCH 26/26] [ng] texi: remove some crufty code to support obsolete environment, Stefano Lattarini, 2012/06/16