[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Sun, 27 Oct 2024 11:22:27 -0400 (EDT) |
branch: master
commit 057fa77efe133b9a3487020adfe40c04017cb260
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Oct 27 17:01:23 2024 +0100
* tp/texi2any.pl (@texinfo_language_config_dirs): when calling
texi2any in source, but not as part of a test, add top_srcdir util
directory to @texinfo_language_config_dirs to find the default
htmlxref.cnf file there.
---
ChangeLog | 7 +++++++
tp/texi2any.pl | 5 +++++
2 files changed, 12 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 3fa4286364..4b4eff57cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-10-27 Patrice Dumas <pertusus@free.fr>
+
+ * tp/texi2any.pl (@texinfo_language_config_dirs): when calling
+ texi2any in source, but not as part of a test, add top_srcdir util
+ directory to @texinfo_language_config_dirs to find the default
+ htmlxref.cnf file there.
+
2024-10-27 Patrice Dumas <pertusus@free.fr>
* util/htmlxref.cnf (source-highlight, src-highlite): use both
diff --git a/tp/texi2any.pl b/tp/texi2any.pl
index 65ae74cb9b..a5bc9a74d6 100755
--- a/tp/texi2any.pl
+++ b/tp/texi2any.pl
@@ -1525,6 +1525,11 @@ Texinfo::Transformations->import();
require Texinfo::Convert::Utils;
Texinfo::Convert::Utils->import();
+if (not get_conf('TEST') and $Texinfo::ModulePath::texinfo_uninstalled) {
+ push @texinfo_language_config_dirs,
+ File::Spec->catdir($Texinfo::ModulePath::top_srcdir, 'util');
+}
+
if ($Texinfo::ModulePath::texinfo_uninstalled) {
my $locales_dir = File::Spec->catdir($Texinfo::ModulePath::tp_builddir,
'LocaleData');