From db9d795cb002d6a6daeb40087a5827ba775e0a5d Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Fri, 6 Jul 2018 01:12:20 +0300 Subject: [PATCH] cleanup --- gen/man.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gen/man.sh b/gen/man.sh index a7dd31f7..109c987e 100755 --- a/gen/man.sh +++ b/gen/man.sh @@ -13,11 +13,11 @@ # reason, it is recommended to check the output after generation especially # when the documentation is changed in a significant way. -out="lf.1" +out=lf.1 -echo ".\\\" Code generated by gen/man.sh DO NOT EDIT." > $out +echo '.\" Code generated by gen/man.sh DO NOT EDIT.' > $out -cat << EOF >> $out +cat << END >> $out .TH LF 1 .SH NAME lf \- terminal file manager @@ -34,7 +34,7 @@ lf \- terminal file manager .RI [directory] .YS .SH DESCRIPTION -EOF +END go doc | awk ' BEGIN { @@ -54,7 +54,6 @@ BEGIN { # heading /^[^[:punct:]]*$/ { - gsub("\n", " ", $0) print ".SH", toupper($0) start = 1 next