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

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