Commit Graph

15 Commits

Author SHA1 Message Date
Richard Biener
d5ff1ccee3 Conditionalize libgdiagnostic processing on presence
The following makes update_web_docs_git work on branches without
libgdiagnostic.

maintainer_scripts/
	* update_web_docs_git: Conditionalize libgdiagnostic processing
	on presence.
2025-05-23 14:00:40 +02:00
Jakub Jelinek
5d3b2f07b1 cobol: Fix up update_web_docs_git for COBOL [PR119227]
As mentioned in the PR, the COBOL documentation is currently not present
in onlinedocs at all.
While the script generates gcobol{,-io}.{pdf,html}, it generates them in
the gcc/gcc/cobol/ subdirectory of the update_web_docs_git temporary
directory and nothing find it there afterwards, all the processing is on
for file in */*.html *.ps *.pdf *.tar; do
So, this patch puts gcobol{,-io}.html into gcobol/ subdirectory and
gcobol{,-io}.pdf into the current directory, so that it is picked up.
With this it makes into onlinedocs:
find . -name \*cobol\*
./onlinedocs/gcobol.pdf.gz
./onlinedocs/gcobol.pdf
./onlinedocs/gcobol_io.pdf.gz
./onlinedocs/gcobol_io.pdf
./onlinedocs/gcobol
./onlinedocs/gcobol/gcobol_io.html.gz
./onlinedocs/gcobol/gcobol_io.html
./onlinedocs/gcobol/gcobol.html.gz
./onlinedocs/gcobol/gcobol.html
./onlinedocs/gnat_rm/gnat_005frm_002finterfacing_005fto_005fother_005flanguages-interfacing-to-cobol.html.gz
./onlinedocs/gnat_rm/gnat_005frm_002finterfacing_005fto_005fother_005flanguages-interfacing-to-cobol.html
./onlinedocs/gnat_rm/gnat_005frm_002fimplementation_005fadvice-rm-f-7-cobol-support.html.gz
./onlinedocs/gnat_rm/gnat_005frm_002fimplementation_005fadvice-rm-f-7-cobol-support.html
./onlinedocs/gnat_rm/gnat_005frm_002fimplementation_005fadvice-rm-b-4-95-98-interfacing-with-cobol.html.gz
./onlinedocs/gnat_rm/gnat_005frm_002fimplementation_005fadvice-rm-b-4-95-98-interfacing-with-cobol.html

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-04-07 13:53:20 +02:00
James K. Lowden
86c692c51c Update update_web_docs_git for cobol
maintainer-scripts/
	* update_web_docs_git: Add libgcobol module and cobol language.
2025-03-11 07:48:27 +01:00
David Malcolm
e6e4cb34e3 maintainer-scripts: build the libgdiagnostics docs for the website [PR117883]
maintainer-scripts/ChangeLog:
	PR web/117883
	* update_web_docs_git: Introduce SPHINX_VENV to make
	it easier to test the script.  Add the libgdiagnostics docs
	and testsuite to the files to be preserved.  Use sphinx to build
	the libgdiagnostics docs as HTML.  Copy them into $DOCSDIR.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
2024-12-03 13:53:46 -05:00
David Malcolm
168f938b8f maintainer-scripts: fix jit docs on website
I noticed whilst working on the libgdiagnostics docs
that some errors like this were occurring in the jit docs:

/tmp/gcc-doc-update.3782849/gcc/gcc/jit/docs/cp/topics/asm.rst:63: WARNING: Include file '/tmp/gcc-doc-update.3782849/gcc/gcc/testsuite/jit.dg/test-asm.cc' not found or reading it failed

which was occurring for:
* test-asm.c and .cc
* test-switch.c
* test-accessing-union.c

and indeed https://gcc.gnu.org/onlinedocs/jit/topics/asm.html is
currently missing various code examples.

Fixed thusly; tested locally.

maintainer-scripts/ChangeLog:
	* update_web_docs_git: Add the jit testsuite to the files to
	be preserved, since this is used by the jit docs.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
2024-12-03 13:53:42 -05:00
Gerald Pfeifer
e3b8480f94 maintainer-scripts: Switch bug reporting URL to https
maintainer-scripts:
	* update_web_docs_git (BUGURL): Switch to https.
2024-07-07 22:20:45 +02:00
Arsen Arsenović
fa3a566378 update_web_docs_git: Allow setting TEXI2*, add git build default
maintainer-scripts/ChangeLog:

	* update_web_docs_git: Add a mechanism to override makeinfo,
	texi2dvi and texi2pdf, and default them to
	/home/gccadmin/texinfo/install-git/bin/${tool}, if present.
2023-04-20 22:57:16 +02:00
Arsen Arsenović
0395e1364d html: Set CONTENTS_OUTPUT_LOCATION=inline if makeinfo supports it
This flag allows us to restore old (pre-6.8) behavior of the
@{summary,}content commands, so that texi2any continues to emit
summarycontents first.

maintainer-scripts/ChangeLog:

	* update_web_docs_git: Set CONTENTS_OUTPUT_LOCATION=inline in
	order to put @shortcontents above contents.

gcc/ChangeLog:

	* configure.ac: Add check for the Texinfo 6.8
	CONTENTS_OUTPUT_LOCATION customization variable and set it if
	supported.
	* configure: Regenerate.
	* Makefile.in (MAKEINFO_TOC_INLINE_FLAG): New variable.  Set by
	configure.ac to -c CONTENTS_OUTPUT_LOCATION=inline if
	CONTENTS_OUTPUT_LOCATION support is detected, empty otherwise.
	($(build_htmldir)/%/index.html): Pass MAKEINFO_TOC_INLINE_FLAG.
2023-03-21 09:47:34 +01:00
Arsen Arsenović
27334ebe38 update_web_docs_git: Update CSS reference to new manual CSS
maintainer-scripts/ChangeLog:

	* update_web_docs_git (CSS): Update CSS reference to point to
	/texinfo-manuals.css.
2023-03-21 09:47:34 +01:00
Gaius Mulley
fa4d0ab533 maintainer-scripts: Add Modula-2 manual to update_web_docs_git
maintainer-scripts/ChangeLog:

	* update_web_docs_git (MANUALS): Add gm2.
	Add include path for gm2 manual.
2023-03-17 00:11:48 +01:00
Gerald Pfeifer
0c061da91a maintainer-scripts: Abstract BUGURL in update_web_docs_git
The URL where to report bugs is hard coded in two places; abstract that
into one variable, defined up front.

maintainer-scripts/ChangeLog:

	* update_web_docs_git (BUGURL): Introduce and use throughout.
2023-03-16 01:25:14 +01:00
Iain Buclaw
d13c359a49 maintainer-scripts: Add gdc to update_web_docs_git
So that it's built and uploaded to gcc.gnu.org/onlinedocs.

	PR web/107749

maintainer-scripts/ChangeLog:

	* update_web_docs_git: Add gdc to MANUALS.
2022-11-30 22:40:56 +01:00
Martin Liska
c6894e1dde contrib: use sphinx-build from a venv
maintainer-scripts/ChangeLog:

	* update_web_docs_git: Use sphinx-build from a venv so that
	we can use a recent version.
2022-07-28 12:38:09 +02:00
Jakub Jelinek
a0ae4cbe9d maintainer-scripts: Fix jit documentation build with update_web_docs_git
scripts/update_web_docs_git -r 9.3.0 -d gcc-9.3.0
failed after the sourceware upgrade, there is no python-sphinx10 package and
python3-sphinx is new enough that the docs build succeeded.

2020-03-12  Jakub Jelinek  <jakub@redhat.com>

	* update_web_docs_git: Drop SPHINXBUILD=/usr/bin/sphinx-1.0-build.
2020-03-12 14:46:28 +01:00
Joseph Myers
33742a0a02 Replace update_web_docs_svn with update_web_docs_git.
This patch replaces the update_web_docs_svn script, that updates
online documentation from its sources in the GCC repository, run once
a day from cron, with update_web_docs_git.

	* update_web_docs_git: New file.
	* update_web_docs_svn: Remove.
	* crontab: Use update_web_docs_svn.
2020-01-13 17:43:52 +00:00