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