cleanup
This commit is contained in:
1 parent
2f3c52f9f2
commit
db9d795cb0
1 file changed
+4
-5
+4
-5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user