Skip to contentSkip to conversation

build: doc: Update build_man.sh for doxygen 1.9.2

PATCH Superseded Duncan Roe 1 participant 1 message Dec 17, 2021 netfilter

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Duncan Roe

author
#0 lore raw

PATCH v2 1/1 build: doc: Update build_man.sh for doxygen 1.9.2

Function del_def_at_lines() removes lines of the form:

Definition at line <nnn> of file ...

At doxygen 1.9.2, <nnn> is displayed in bold, so upgrade the regex to match an optional bold / normal pair around <nnn>

---
 doxygen/build_man.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
doxygen/build_man.sh +1 -1
index 852c7b8..c68876c 100755
@@ -96,7 +96,7 @@ fix_double_blanks(){
 del_def_at_lines(){
   linnum=1
   while [ $linnum -ne 0 ]
-  do mygrep "^Definition at line [[:digit:]]* of file" $target
+  do mygrep '^Definition at line (\\fB)?[[:digit:]]*(\\fP)? of file' $target
     [ $linnum -eq 0 ] || delete_lines $(($linnum - 1)) $linnum
   done
 }
Signature · 1 line
2.17.5