[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * Makefile.am (po_document-check): Check for cdt,
From: |
Patrice Dumas |
Subject: |
branch master updated: * Makefile.am (po_document-check): Check for cdt, pcdt, cdt_string and gdt_string, by modifying the regex. Some unused functions could be found, such as pgdt_string, but it should not be an issue. |
Date: |
Thu, 06 Jun 2024 13:24:48 -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 ea83a599e6 * Makefile.am (po_document-check): Check for cdt, pcdt,
cdt_string and gdt_string, by modifying the regex. Some unused functions could
be found, such as pgdt_string, but it should not be an issue.
ea83a599e6 is described below
commit ea83a599e60c2de4a86e001cafc7ff4c3165b24b
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Thu Jun 6 19:24:41 2024 +0200
* Makefile.am (po_document-check): Check for cdt, pcdt, cdt_string
and gdt_string, by modifying the regex. Some unused functions could
be found, such as pgdt_string, but it should not be an issue.
* po/Makevars, po_document/Makevars: add comments to remember to
update po*-check when new functions are added as keywords.
---
ChangeLog | 9 +++++++++
Makefile.am | 5 +++--
po/Makevars | 2 ++
po_document/Makevars | 2 ++
4 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index aa6925a5d8..ae05cc6529 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2024-06-06 Patrice Dumas <pertusus@free.fr>
+
+ * Makefile.am (po_document-check): Check for cdt, pcdt, cdt_string
+ and gdt_string, by modifying the regex. Some unused functions could
+ be found, such as pgdt_string, but it should not be an issue.
+
+ * po/Makevars, po_document/Makevars: add comments to remember to
+ update po*-check when new functions are added as keywords.
+
2024-06-06 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/XS/main/DocumentXS.xs (document_tree)
diff --git a/Makefile.am b/Makefile.am
index d8c63379f5..a509ec3f16 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -128,12 +128,13 @@ po_document-check:
contrib/* ) continue;; \
djgpp/* | man/* ) continue;; \
texinfo-*/*) continue;; \
- tp/maintain/* ) continue;; \
+ tp/maintain/*) continue;; \
+ tp/init/documentation_examples.pm) continue;; \
esac; \
files="$$files $$file"; \
done; \
grep -E -l \
- '\b(p?gdt) *\([^)$$]*("|'"'"'|$$)' \
+ '\b(p?[cg]dt(_string)?) *\([^)$$]*("|'"'"'|$$)' \
$$files | sort -u > $@-2; \
diff -u $@-1 $@-2 || exit 1; \
rm -f $@-1 $@-2; \
diff --git a/po/Makevars b/po/Makevars
index 64ed3b85dc..9f1406aab4 100644
--- a/po/Makevars
+++ b/po/Makevars
@@ -8,6 +8,8 @@ subdir = po
top_builddir = ..
# These options get passed to xgettext. "$" is escaped as "$$" here.
+# When a new function name is added with --keyword/-k, the list in
+# po-check should be updated, too.
XGETTEXT_OPTIONS = \
-cTRANSLATORS\
--from-code=UTF-8\
diff --git a/po_document/Makevars b/po_document/Makevars
index 081049f7ab..e0f5a028c8 100644
--- a/po_document/Makevars
+++ b/po_document/Makevars
@@ -9,6 +9,8 @@ top_builddir = ..
# NOTE only marking of strings in perl, not in C.
# These options get passed to xgettext.
+# When a new function name is added with --keyword/-k, the list in
+# po_document-check should be updated, too.
XGETTEXT_OPTIONS = -cTRANSLATORS --language=Perl \
--keyword=gdt --keyword=gdt_string --keyword=pgdt:1c,2 \
--keyword=cdt --keyword=cdt_string --keyword=pcdt:1c,2 \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * Makefile.am (po_document-check): Check for cdt, pcdt, cdt_string and gdt_string, by modifying the regex. Some unused functions could be found, such as pgdt_string, but it should not be an issue.,
Patrice Dumas <=