diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-04-25 13:24:56 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2024-04-25 18:38:43 +0100 |
commit | c9cc1c850c6d084752207b6cf247a0a48bae0d52 (patch) | |
tree | 60e95d4ac10178029620aa2cd5fd459ead48224f | |
parent | d5b2c6b32c97e1fd03214771d35f8d67b0d72940 (diff) | |
download | gcc-c9cc1c850c6d084752207b6cf247a0a48bae0d52.zip gcc-c9cc1c850c6d084752207b6cf247a0a48bae0d52.tar.gz gcc-c9cc1c850c6d084752207b6cf247a0a48bae0d52.tar.bz2 |
libstdc++: Fix run_doxygen for Doxygen 1.10 man page format
Doxygen switched from \fC to \fR in its man page output:
https://github.com/doxygen/doxygen/pull/10497
This breaks our script that expects \fC so change the regaulr expression
to work with either style.
libstdc++-v3/ChangeLog:
* scripts/run_doxygen: Adjust sed pattern to match '\fR' for
new man output that Doxygen 1.10 generates.
-rw-r--r-- | libstdc++-v3/scripts/run_doxygen | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libstdc++-v3/scripts/run_doxygen b/libstdc++-v3/scripts/run_doxygen index fbd601b..ea9bcb5 100644 --- a/libstdc++-v3/scripts/run_doxygen +++ b/libstdc++-v3/scripts/run_doxygen @@ -294,7 +294,11 @@ $gxx $cppflags $cxxflags ${srcdir}/doc/doxygen/stdheader.cc -o ./stdheader || ex problematic=`grep -E -l '#include <.*h>' [a-z]*.3` for f in $problematic; do # this is also slow, but safe and easy to debug - oldh=`sed -n '/fC#include </s/.*<\(.*\)>.*/\1/p' $f` + oldh=`sed -n '/f[CR]#include </s/.*<\(.*\)>.*/\1/p' $f` + if [ "$oldh" == "" ]; then + echo "ERROR: Doxygen man page formatting changed" 2>&1 + continue + fi newh=`echo $oldh | sed 's/\\\\&\\././g' | ./stdheader` sed "s=${oldh/\\/.}=${newh}=" $f > TEMP && mv TEMP $f done |