]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] texi: simplify handle_texinfo_source by assuming '.info' suffix ...
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 16 Jun 2012 19:09:23 +0000 (21:09 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 17 Jun 2012 08:21:57 +0000 (10:21 +0200)
... for the output info files.

* automake.in (handle_texinfo_source): Here, in particular removing
the local variable '$dsfx'.

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

index eb0e6f6815132173740d2038232d6ebfb9dc7442..e32367a1774ffe67ee958dc2fa06438feab21bd4 100644 (file)
@@ -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",