summary refs log tree commit diff
path: root/bin/html.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/html.sh')
-rw-r--r--bin/html.sh24
1 files changed, 16 insertions, 8 deletions
diff --git a/bin/html.sh b/bin/html.sh
index 600d37f5..5b59003f 100644
--- a/bin/html.sh
+++ b/bin/html.sh
@@ -3,12 +3,15 @@ set -eu
 
 readonly GitURL='https://git.causal.agency/src/tree/bin'
 
-src=$1
-man=${2:-}
+man=$1
+shift
+
+title=${man##*/}
+title=${title%.[1-9]}
 
 cat <<EOF
 <!DOCTYPE html>
-<title>${src}</title>
+<title>${title}</title>
 <style>
 $(./scheme -s)
 
@@ -59,8 +62,13 @@ EOF
 opts='fragment'
 [ "${man}" = "README.7" ] && opts="${opts},man=%N.html"
 mandoc -T html -O "${opts}" "${man}"
-cat <<EOF
-<p>
-<a href="${GitURL}/${src}">${src} in git</a>
-EOF
-./htagml -p -f htmltags "${src}"
+
+while [ $# -gt 0 ]; do
+	src=$1
+	shift
+	cat <<-EOF
+	<p>
+	<a href="${GitURL}/${src}">${src} in git</a>
+	EOF
+	./htagml -p -f htmltags "${src}"
+done
021-03-05 14:06:32 -0500'>2021-03-05build: Add OpenSSL includes to libcompatJune McEnroe 2020-12-15Import LibreSSL 3.3.1June McEnroe 2020-11-24Import LibreSSL 3.3.0June McEnroe 2020-10-22Import LibreSSL 3.2.2June McEnroe 2020-09-29Import LibreSSL 3.2.1June McEnroe 2020-09-29import: Add m4/ax_add_fortify_source.m4June McEnroe 2020-08-05build: Add README.7 to EXTRA_DIST 3.2.0June McEnroe 2020-08-03doc: Indicate that only OpenSSL 1.1.1b and newer workJune McEnroe