automake-ng
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]