Skip to contentSkip to conversation

build: doc: Update build_man.sh for doxygen 1.9.2

PATCH Superseded Duncan Roe 2 participants 4 messages Dec 7, 2021 – Dec 16, 2021 netfilter

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Duncan Roe

author
#0 lore raw

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

Cater for bold line number in del_def_at_lines()

---
 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
#1 lore raw

A bit more details on this one? It's just a cosmetic issue?

Quoted 23 lines · Duncan Roe

Cater for bold line number in del_def_at_lines()

---
 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
author
#2 lore raw

Hi Pablo,

Quoted 10 lines · Pablo Neira Ayuso

A bit more details on this one? It's just a cosmetic issue?

Quoted 7 lines · Duncan Roe

Cater for bold line number in del_def_at_lines()

---
 doxygen/build_man.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 16 lines
Quoted 14 lines
doxygen/build_man.sh +1 -2
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
 }
--
Quoted 2 lines

2.17.5

No, not cosmetic. The regexp has to be updated to recognise a line with bold line numbering. Without the patch, the unwanted line appears in the man page.

I thought that was obvious. Will submit a v2 explaining a bit more, unless you apply the patch in the meantime.

Cheers ... Duncan.

#3 lore raw
Quoted 23 lines · Duncan Roe

Hi Pablo,

Quoted 20 lines · Pablo Neira Ayuso

A bit more details on this one? It's just a cosmetic issue?

Quoted 17 lines · Duncan Roe

Cater for bold line number in del_def_at_lines()

---
 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
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
doxygen/build_man.sh +0 -1
     [ $linnum -eq 0 ] || delete_lines $(($linnum - 1)) $linnum
   done
 }
--

2.17.5

No, not cosmetic. The regexp has to be updated to recognise a line with bold line numbering. Without the patch, the unwanted line appears in the man page.

I see.

Quoted 2 lines

I thought that was obvious. Will submit a v2 explaining a bit more, unless you apply the patch in the meantime.

Thanks for sending v2.