On Thu, 16 Mar 2023, Gaius Mulley wrote: >> Does maintainer-scripts/update_web_docs_git require an update to cover >> Modula-2 and actually build the manual we are now linking to > Apologies I was going to ask about these links. I've updated the m2 > subtree with target documentation independent sections. Attached is a > proposed patch for maintainer-scripts/update_web_docs_git feel free to > apply or adapt in any way.
I sorted the special casing alphabetically and pushed the updated patch below. Then I updated the script on gcc.gnu.org and did a testrun. Indeed Modula 2 manuals are now available below https://gcc.gnu.org/onlinedocs/ just the links from that page are off (referring to m2 instead of gm2). I'll fix that next. Gerald commit fa4d0ab533cc2bc9cb6f512b3d4bd0bbc01ee797 Author: Gaius Mulley <gaiusm...@gmail.com> Date: Fri Mar 17 00:08:20 2023 +0100 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. diff --git a/maintainer-scripts/update_web_docs_git b/maintainer-scripts/update_web_docs_git index 1c6a993cafd..4bb4897bf35 100755 --- a/maintainer-scripts/update_web_docs_git +++ b/maintainer-scripts/update_web_docs_git @@ -24,6 +24,7 @@ MANUALS="cpp gdc gfortran gfc-internals + gm2 gnat_ugn gnat-style gnat_rm @@ -167,7 +168,10 @@ for file in $MANUALS; do filename=`find . -name ${file}.texi` if [ "${filename}" ]; then includes="-I ${includedir} -I `dirname ${filename}`" - if [ "$file" = "gnat_ugn" ]; then + if [ "$file" = "gm2" ]; then + includes="$includes -I gcc/gcc/m2/target-independent" + includes="$includes -I gcc/gcc/m2/target-independent/m2" + elif [ "$file" = "gnat_ugn" ]; then includes="$includes -I gcc/gcc/ada -I gcc/gcc/ada/doc/gnat_ugn" fi makeinfo --html --css-ref $CSS $includes -o ${file} ${filename}