aboutsummaryrefslogtreecommitdiff
path: root/maintainer-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'maintainer-scripts')
-rw-r--r--maintainer-scripts/ChangeLog7
-rwxr-xr-xmaintainer-scripts/update_web_docs_git11
2 files changed, 13 insertions, 5 deletions
diff --git a/maintainer-scripts/ChangeLog b/maintainer-scripts/ChangeLog
index 2322249..d08a03b 100644
--- a/maintainer-scripts/ChangeLog
+++ b/maintainer-scripts/ChangeLog
@@ -1,3 +1,10 @@
+2025-04-07 Jakub Jelinek <jakub@redhat.com>
+
+ PR web/119227
+ * update_web_docs_git: Rename mdoc2pdf_html to cobol_mdoc2pdf_html,
+ perform mkdir -p $DOCSDIR/gcobol gcobol, remove $d/ from pdf and in
+ html replace it with gcobol/; update uses of the renamed function.
+
2025-03-31 Jakub Jelinek <jakub@redhat.com>
PR other/119510
diff --git a/maintainer-scripts/update_web_docs_git b/maintainer-scripts/update_web_docs_git
index 574397c..4248088 100755
--- a/maintainer-scripts/update_web_docs_git
+++ b/maintainer-scripts/update_web_docs_git
@@ -205,11 +205,12 @@ done
#
# The COBOL FE maintains man pages. Convert them to HTML and PDF.
#
-mdoc2pdf_html() {
+cobol_mdoc2pdf_html() {
+ mkdir -p $DOCSDIR/gcobol gcobol
input="$1"
d="${input%/*}"
- pdf="$d/$2"
- html="$d/$3"
+ pdf="$2"
+ html="gcobol/$3"
groff -mdoc -T pdf "$input" > "${pdf}~"
mv "${pdf}~" "${pdf}"
mandoc -T html "$filename" > "${html}~"
@@ -221,10 +222,10 @@ find . -name gcobol.[13] |
do
case ${filename##*.} in
1)
- mdoc2pdf_html "$filename" gcobol.pdf gcobol.html
+ cobol_mdoc2pdf_html "$filename" gcobol.pdf gcobol.html
;;
3)
- mdoc2pdf_html "$filename" gcobol_io.pdf gcobol_io.html
+ cobol_mdoc2pdf_html "$filename" gcobol_io.pdf gcobol_io.html
;;
esac
done