meli-website/make_manpage.sh

5 lines
295 B
Bash
Raw Permalink Normal View History

2020-07-30 11:25:40 +03:00
#!/bin/bash
# sed Removes trailing whitespace in <pre> elements
wget --timestamping "https://git.meli.delivery/meli/meli/raw/branch/master/"$1 -O - | mandoc -I os="rendered by mandoc" -Kutf-8 -Ofragment,toc,style="css/manpage.css",includes="#%I",man="#%N.%S" -Thtml | sed 's/\s*<\/pre/<\/pre/'