[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 47e0cdd 2/8: manfull.pl: Avoid silent failures
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 47e0cdd 2/8: manfull.pl: Avoid silent failures |
Date: |
Sat, 2 Oct 2021 13:57:32 -0400 (EDT) |
branch: externals/org
commit 47e0cddbe3fd91b251d695de77c11e69968ea8cf
Author: Max Nikulin <manikulin@gmail.com>
Commit: Bastien <bzg@gnu.org>
manfull.pl: Avoid silent failures
* mk/manfull.pl: Report failures of patching of single-page HTML
manuals.
It should prevent silent generating of manual pages inconsistent with
provided CSS files when output of makeinfo will change next time.
---
mk/manfull.pl | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/mk/manfull.pl b/mk/manfull.pl
index 307ce39..39439bd 100755
--- a/mk/manfull.pl
+++ b/mk/manfull.pl
@@ -1,11 +1,14 @@
#!/usr/bin/perl
+$failures = 0;
while ($page = shift) {
system "mv $page $page.orig";
open IN,"<$page.orig" or die "Cannot read from $page.orig\n";
open OUT,">$page" or die "Cannot write to $page\n";
+$toc = undef;
+
while (<IN>) {
if (/<meta http-equiv="Content-Style-Type" content="text\/css">/) {
print OUT;
@@ -25,4 +28,11 @@ while (<IN>) {
}
}
system "rm $page.orig";
+
+if (!defined($toc) || $toc != 0) {
+ ++$failures;
+ print STDERR "Patching of $page failed\n";
}
+}
+
+$failures == 0 or die "Patching of $failures files failed\n";
- [elpa] externals/org updated (20630fc -> 06578d7), ELPA Syncer, 2021/10/02
- [elpa] externals/org 47e0cdd 2/8: manfull.pl: Avoid silent failures,
ELPA Syncer <=
- [elpa] externals/org ffdf727 1/8: manfull.pl: Adjust pattern for current makeinfo, ELPA Syncer, 2021/10/02
- [elpa] externals/org fac96da 3/8: org-attach.el: Fix checkdoc warnings, ELPA Syncer, 2021/10/02
- [elpa] externals/org 50e6ccf 5/8: org-manual.org: Mention org-contrib NonGNU ELPA package, ELPA Syncer, 2021/10/02
- [elpa] externals/org aaa184f 6/8: org-manual.org: Another way to run version from git, ELPA Syncer, 2021/10/02
- [elpa] externals/org 06578d7 8/8: Merge branch 'bugfix', ELPA Syncer, 2021/10/02
- [elpa] externals/org a46cf53 7/8: Revert "org-manual.org: Another way to run version from git", ELPA Syncer, 2021/10/02
- [elpa] externals/org 749368f 4/8: org-manual.el: Restore `load-path' for git version, ELPA Syncer, 2021/10/02