[gcc r16-839] Conditionalize libgdiagnostic processing on presence
Richard Biener
rguenth@gcc.gnu.org
Fri May 23 12:01:12 GMT 2025
https://gcc.gnu.org/g:d5ff1ccee3f39c4f364f671deb127789b754a6a0
commit r16-839-gd5ff1ccee3f39c4f364f671deb127789b754a6a0
Author: Richard Biener <rguenther@suse.de>
Date: Fri May 23 13:32:47 2025 +0200
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.
Diff:
---
maintainer-scripts/update_web_docs_git | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/maintainer-scripts/update_web_docs_git b/maintainer-scripts/update_web_docs_git
index 424808847b6b..00334ddac7d5 100755
--- a/maintainer-scripts/update_web_docs_git
+++ b/maintainer-scripts/update_web_docs_git
@@ -242,11 +242,15 @@ popd
cp -a gcc/gcc/jit/docs/_build/html jit
mkdir -p $DOCSDIR/jit
-pushd gcc/gcc/doc/libgdiagnostics
-make html SPHINXBUILD=$SPHINX_VENV/bin/sphinx-build || true
-popd
-cp -a gcc/gcc/doc/libgdiagnostics/_build/html libgdiagnostics
-mkdir -p $DOCSDIR/libgdiagnostics
+LIBGDIAGNOSTICS=
+if test -d gcc/gcc/doc/libgdiagnostics; then
+ pushd gcc/gcc/doc/libgdiagnostics
+ make html SPHINXBUILD=$SPHINX_VENV/bin/sphinx-build || true
+ popd
+ cp -a gcc/gcc/doc/libgdiagnostics/_build/html libgdiagnostics
+ mkdir -p $DOCSDIR/libgdiagnostics
+ LIBGDIAGNOSTICS=libgdiagnostics
+fi
# Work around makeinfo generated file names and references with
# "_002d" instead of "-".
@@ -298,7 +302,7 @@ done
# below them, and with some non-HTML files (.png images from us,
# plus .css and .js supplied by sphinx, and source files, renamed
# from .rst to .txt).
-find jit libgdiagnostics \
+find jit $LIBGDIAGNOSTICS \
-name "*.html" -o -name "*.png" \
-o -name "*.css" -o -name "*.js" \
-o -name "*.txt" |
More information about the Gcc-cvs
mailing list