This commit is contained in:
Gokcehan committed 2018-07-06 01:12:20 +03:00
1 parent 2f3c52f9f2
commit db9d795cb0
1 file changed
+4 -5
+4 -5
View File
@@ -13,11 +13,11 @@
# reason, it is recommended to check the output after generation especially # reason, it is recommended to check the output after generation especially
# when the documentation is changed in a significant way. # 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 .TH LF 1
.SH NAME .SH NAME
lf \- terminal file manager lf \- terminal file manager
@@ -34,7 +34,7 @@ lf \- terminal file manager
.RI [directory] .RI [directory]
.YS .YS
.SH DESCRIPTION .SH DESCRIPTION
EOF END
go doc | awk ' go doc | awk '
BEGIN { BEGIN {
@@ -54,7 +54,6 @@ BEGIN {
# heading # heading
/^[^[:punct:]]*$/ { /^[^[:punct:]]*$/ {
gsub("\n", " ", $0)
print ".SH", toupper($0) print ".SH", toupper($0)
start = 1 start = 1
next next