From: Stefano Lattarini Date: Sat, 16 Jun 2012 19:09:23 +0000 (+0200) Subject: [ng] texi: simplify handle_texinfo_source by assuming '.info' suffix ... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73683dcc78c33098d610eba7e0ee280dedd2804c;p=thirdparty%2Fautomake.git [ng] texi: simplify handle_texinfo_source by assuming '.info' suffix ... ... for the output info files. * automake.in (handle_texinfo_source): Here, in particular removing the local variable '$dsfx'. Signed-off-by: Stefano Lattarini --- diff --git a/automake.in b/automake.in index eb0e6f681..e32367a17 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",