Blame SOURCES/0147-scripts-docsurgeon-Fix-document-header-for-section-1.patch

26ccd9
From 633205122bc5a54b56ac6d961f9fc4aac917b0fd Mon Sep 17 00:00:00 2001
26ccd9
From: Vishal Verma <vishal.l.verma@intel.com>
26ccd9
Date: Fri, 4 Mar 2022 13:02:51 -0700
26ccd9
Subject: [PATCH 147/217] scripts/docsurgeon: Fix document header for section 1
26ccd9
 man pages
26ccd9
26ccd9
Document header generation for section 1 man pages (cxl-foo commands) was
26ccd9
missing the section number in parenthesis, i.e. it would generate:
26ccd9
26ccd9
  cxl-foo
26ccd9
  =======
26ccd9
26ccd9
instead of:
26ccd9
26ccd9
  cxl-foo(1)
26ccd9
  ==========
26ccd9
26ccd9
resulting in asciidoc(tor) warnings.
26ccd9
26ccd9
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
26ccd9
---
26ccd9
 scripts/docsurgeon | 2 +-
26ccd9
 1 file changed, 1 insertion(+), 1 deletion(-)
26ccd9
26ccd9
diff --git a/scripts/docsurgeon b/scripts/docsurgeon
26ccd9
index ca0ad78..1421ef7 100755
26ccd9
--- a/scripts/docsurgeon
26ccd9
+++ b/scripts/docsurgeon
26ccd9
@@ -244,7 +244,7 @@ gen_cli()
26ccd9
 
26ccd9
 	# Start template generation
26ccd9
 	printf "%s\n" "$copyright_cli" > "$tmp"
26ccd9
-	gen_header "$name" >> "$tmp"
26ccd9
+	gen_header "$name($_arg_section)" >> "$tmp"
26ccd9
 	gen_section_name "$name" >> "$tmp"
26ccd9
 	gen_section_synopsis_1 "$name" >> "$tmp"
26ccd9
 	gen_section "DESCRIPTION" >> "$tmp"
26ccd9
-- 
26ccd9
2.27.0
26ccd9