[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * doc/Makefile.am (po-check, po_document-check),
From: |
Patrice Dumas |
Subject: |
branch master updated: * doc/Makefile.am (po-check, po_document-check), README-hacking, po_document/POTFILES.in, tp/Texinfo/ParserNonXS.pm: add __p to po-check regexp, remove gdt. Add po_document-check target similar to po-check for po_document/POTFILES.in. Update po_document/POTFILES.in with the files found. In ParserNonXS.pm, add a useless $self argument to gdt( in comment to avoid getting caught in po_document-check. |
Date: |
Sat, 19 Nov 2022 06:58:42 -0500 |
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 68675db295 * doc/Makefile.am (po-check, po_document-check),
README-hacking, po_document/POTFILES.in, tp/Texinfo/ParserNonXS.pm: add __p to
po-check regexp, remove gdt. Add po_document-check target similar to po-check
for po_document/POTFILES.in. Update po_document/POTFILES.in with the files
found. In ParserNonXS.pm, add a useless $self argument to gdt( in comment to
avoid getting caught in po_document-check.
68675db295 is described below
commit 68675db2951a56bbe8e0717338e193782bf23026
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Nov 19 12:58:31 2022 +0100
* doc/Makefile.am (po-check, po_document-check), README-hacking,
po_document/POTFILES.in, tp/Texinfo/ParserNonXS.pm: add __p to
po-check regexp, remove gdt. Add po_document-check target similar
to po-check for po_document/POTFILES.in. Update po_document/POTFILES.in
with the files found.
In ParserNonXS.pm, add a useless $self argument to gdt( in comment to
avoid getting caught in po_document-check.
---
ChangeLog | 10 ++++++++++
Makefile.am | 25 ++++++++++++++++++++++++-
README-hacking | 1 +
man/pod2texi.1 | 2 +-
po_document/POTFILES.in | 2 ++
tp/Texinfo/ParserNonXS.pm | 2 +-
6 files changed, 39 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e284a5c78b..a4dfeebc6f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2022-11-19 Patrice Dumas <pertusus@free.fr>
+
+ * doc/Makefile.am (po-check, po_document-check), README-hacking,
+ po_document/POTFILES.in, tp/Texinfo/ParserNonXS.pm: add __p to
+ po-check regexp, remove gdt. Add po_document-check target similar
+ to po-check for po_document/POTFILES.in. Update po_document/POTFILES.in
+ with the files found.
+ In ParserNonXS.pm, add a useless $self argument to gdt( in comment to
+ avoid getting caught in po_document-check.
+
2022-11-18 Gavin Smith <gavinsmith0123@gmail.com>
* doc/Makefile.am (wwwdoc-build): Pass --quiet flag to pod2html.
diff --git a/Makefile.am b/Makefile.am
index 22559d8066..7b7b82219b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -117,8 +117,31 @@ po-check:
# with no space or lparen; the other alternative matches the \
# usual function calls, e.g., _("..."), with or without space.\
grep -E -l \
-
'\b[^$$]N?__?"|\b(N?__?|gdt|gettext|line_error|line_error_ext|line_warn|command_error|command_warn)
*\([^)"]*("|$$)' \
+
'\b[^$$]N?__?"|\b(N?__?p?|gettext|line_error|line_error_ext|line_warn|command_error|command_warn)
*\([^)"]*("|$$)' \
$$files | sort -u > $@-2; \
diff -u $@-1 $@-2 || exit 1; \
rm -f $@-1 $@-2; \
fi
+
+po_document-check:
+ @if test -f po_document/POTFILES.in; then \
+ grep -E -v '^(#|$$)' po_document/POTFILES.in | sort > $@-1; \
+ files=; \
+ for file in $$($(CVS_LIST_EXCEPT)) \
+ `find [a-z]* -name '*.p[lm]'`; do \
+ # don't look at sources from some subdirs. \
+ case $$file in \
+ contrib/* ) continue;; \
+ djgpp/* | man/* ) continue;; \
+ texinfo-*/*) continue;; \
+ tp/maintain/* ) continue;; \
+ esac; \
+ files="$$files $$file"; \
+ done; \
+ grep -E -l \
+ '\b(p?gdt) *\([^)$$]*("|'"'"'|$$)' \
+ $$files | sort -u > $@-2; \
+ diff -u $@-1 $@-2 || exit 1; \
+ rm -f $@-1 $@-2; \
+ fi
+
diff --git a/README-hacking b/README-hacking
index 23395bb9f3..938a0b5ecc 100644
--- a/README-hacking
+++ b/README-hacking
@@ -244,6 +244,7 @@ Not all compiler warnings have to be fixed, though.
Have a look at the output of "git status -u" to check for files that
should be tracked in git or ignored.
make po-check # update po/POTFILES.in as needed
+make po_document-check # update po_document/POTFILES.in as needed
check indices of Texinfo manuals and check for duplicates (with <1> in Info)
diff --git a/man/pod2texi.1 b/man/pod2texi.1
index 9608fb5d96..3fdfb70bc6 100644
--- a/man/pod2texi.1
+++ b/man/pod2texi.1
@@ -133,7 +133,7 @@
.\" ========================================================================
.\"
.IX Title "POD2TEXI 1"
-.TH POD2TEXI 1 "2022-11-14" "perl v5.36.0" "User Contributed Perl
Documentation"
+.TH POD2TEXI 1 "2022-11-19" "perl v5.36.0" "User Contributed Perl
Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
diff --git a/po_document/POTFILES.in b/po_document/POTFILES.in
index 8ad88dfcf0..51caa07ed6 100644
--- a/po_document/POTFILES.in
+++ b/po_document/POTFILES.in
@@ -7,6 +7,8 @@
# List of source files containing translatable strings that end up in
# the output from processing Texinfo documents.
+tp/ext/epub3.pm
+tp/init/html32.pm
tp/Texinfo/Common.pm
tp/Texinfo/Transformations.pm
tp/Texinfo/Translations.pm
diff --git a/tp/Texinfo/ParserNonXS.pm b/tp/Texinfo/ParserNonXS.pm
index 25cd2b9500..67dd29f392 100644
--- a/tp/Texinfo/ParserNonXS.pm
+++ b/tp/Texinfo/ParserNonXS.pm
@@ -4541,7 +4541,7 @@ sub _process_remaining_on_line($$$$)
if (not exists($self->{'values'}->{$value})) {
_abort_empty_line($self, $current);
# caller should expand something along
- # gdt('@{No value for `{value}\'@}', {'value' => $value});
+ # gdt($self, '@{No value for `{value}\'@}', {'value' => $value});
push @{$current->{'contents'}}, { 'cmdname' => $command,
'info' => {'flag' => $value},
'parent' => $current };
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * doc/Makefile.am (po-check, po_document-check), README-hacking, po_document/POTFILES.in, tp/Texinfo/ParserNonXS.pm: add __p to po-check regexp, remove gdt. Add po_document-check target similar to po-check for po_document/POTFILES.in. Update po_document/POTFILES.in with the files found. In ParserNonXS.pm, add a useless $self argument to gdt( in comment to avoid getting caught in po_document-check.,
Patrice Dumas <=