From 6689373796eb595099609aa3d8bedef9f93807ce Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 13 Jan 2021 23:41:06 -0500 Subject: Clean up html.sh --- bin/html.sh | 52 +++++++++++++++------------------------------------- 1 file changed, 15 insertions(+), 37 deletions(-) (limited to 'bin') diff --git a/bin/html.sh b/bin/html.sh index 8214b8ff..d76fcc8c 100644 --- a/bin/html.sh +++ b/bin/html.sh @@ -5,15 +5,16 @@ readonly GitURL='https://git.causal.agency/src/tree/bin' man=$1 shift - title=${man##*/} title=${title%.[1-9]} cat < + ${title} EOF -opts='fragment' -[ "${man}" = "README.7" ] && opts="${opts},man=%N.html" -mandoc -T html -O "${opts}" "${man}" +opts=fragment +[ "${man}" = "README.7" ] && opts=${opts},man=%N.html +mandoc -T html -O ${opts} "${man}" -while [ $# -gt 0 ]; do - src=$1 - shift +for src; do cat <<-EOF

${src} in git -- cgit 1.4.1