42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
descline=$(echo "$dhead" | cut -d: -f1)
offset=1
else
descline=$(grep -m2 -n "^#" "$file" | tail -n1 | cut -d: -f1)
offset=0
fi
tail -n+2 $file | head -n$(expr $descline - 2) | cmark -t man >>"$fmt"
echo >>"$fmt" ".SH DESCRIPTION"
tail -n+$(expr $descline + $offset) "$file" | cmark -t man >> "$fmt"
test "$doc_html" = "yes" && {
mkdir -p "$htmldest"
groff -Thtml -Kutf8 -m man "$fmt" > "$html"
test "$verbose" != "loud" ||
say "wrote html page for $stem to $html"
}
|
|
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
descline=$(echo "$dhead" | cut -d: -f1)
offset=1
else
descline=$(grep -m2 -n "^#" "$file" | tail -n1 | cut -d: -f1)
offset=0
fi
tail -n+2 $file | head -n$(expr $descline - 2) | cmark --smart -t man >>"$fmt"
echo >>"$fmt" ".SH DESCRIPTION"
tail -n+$(expr $descline + $offset) "$file" | cmark --smart --normalize -t man >> "$fmt"
test "$doc_html" = "yes" && {
mkdir -p "$htmldest"
groff -Thtml -Kutf8 -m man "$fmt" > "$html"
test "$verbose" != "loud" ||
say "wrote html page for $stem to $html"
}
|