texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/ext/latex2html.pm (l2h_to_html): do not set


From: Patrice Dumas
Subject: branch master updated: * tp/ext/latex2html.pm (l2h_to_html): do not set latex2html -dir option if the destination directory is the current directory. Report by Jeremy Bryant.
Date: Fri, 06 Sep 2024 04:16:29 -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 d3441580b3 * tp/ext/latex2html.pm (l2h_to_html): do not set latex2html 
-dir option if the destination directory is the current directory. Report by 
Jeremy Bryant.
d3441580b3 is described below

commit d3441580b34a4421d5a7659f74eae3a5ceb95ebc
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Sep 6 10:16:29 2024 +0200

    * tp/ext/latex2html.pm (l2h_to_html): do not set latex2html -dir
    option if the destination directory is the current directory.
    Report by Jeremy Bryant.
---
 ChangeLog            | 6 ++++++
 tp/ext/latex2html.pm | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 74dbb1249b..d2c5b7fb17 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-09-06  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/ext/latex2html.pm (l2h_to_html): do not set latex2html -dir
+       option if the destination directory is the current directory.
+       Report by Jeremy Bryant.
+
 2024-09-06  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Makefile.am (test_files), tp/t/input_files/htmlxref-test.cnf,
diff --git a/tp/ext/latex2html.pm b/tp/ext/latex2html.pm
index 4d539cf6f4..44408211d6 100644
--- a/tp/ext/latex2html.pm
+++ b/tp/ext/latex2html.pm
@@ -436,7 +436,8 @@ sub l2h_to_html($$$)
   # set output dir
   my $encoded_destination_dir_option = ' -no_subdir';
   my $destination_dir_option = $encoded_destination_dir_option;
-  if ($destination_directory ne '') {
+  my $curdir = File::Spec->curdir();
+  if ($destination_directory ne '' and $destination_directory ne $curdir) {
     $encoded_destination_dir_option = " -dir ".$destination_directory_string;
     $destination_dir_option = " -dir ".$destination_directory;
   }



reply via email to

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