texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * tp/texi2any.pl: use $curdir from File::Spec->cu


From: Patrice Dumas
Subject: branch master updated: * tp/texi2any.pl: use $curdir from File::Spec->curdir() instead of '.'.
Date: Fri, 28 Jul 2023 05:02:46 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new ca4172f4bc * tp/texi2any.pl: use $curdir from File::Spec->curdir() 
instead of '.'.
ca4172f4bc is described below

commit ca4172f4bc2f5304912a87d14409bbcd344f7734
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Jul 28 11:00:59 2023 +0200

    * tp/texi2any.pl: use $curdir from File::Spec->curdir() instead of '.'.
---
 ChangeLog      | 4 ++++
 tp/texi2any.pl | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 348ceecf65..36f4609451 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2023-07-28  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/texi2any.pl: use $curdir from File::Spec->curdir() instead of '.'.
+
 2023-07-27  Gavin Smith <gavinsmith0123@gmail.com>
 
        * doc/texinfo.tex (\unnsecentry, \unnsubsecentry): Correct
diff --git a/tp/texi2any.pl b/tp/texi2any.pl
index 593f7c4896..70dded5a98 100755
--- a/tp/texi2any.pl
+++ b/tp/texi2any.pl
@@ -1387,9 +1387,9 @@ while(@input_files) {
   # are modified
   my $parser_file_options = Storable::dclone($parser_options);
 
-  my @prepended_include_directories = ('.');
+  my @prepended_include_directories = ($curdir);
   push @prepended_include_directories, $input_directory
-      if ($input_directory ne '.');
+      if ($input_directory ne $curdir);
   @prepended_include_directories =
     (@prepend_dirs, @prepended_include_directories);
 



reply via email to

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