From b7c15c31519dc44c1f691e0466badd556ffe9423 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 18:18:56 +0200 Subject: Adding upstream version 3.7.10. Signed-off-by: Daniel Baumann --- mantools/readme2html | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 mantools/readme2html (limited to 'mantools/readme2html') diff --git a/mantools/readme2html b/mantools/readme2html new file mode 100755 index 0000000..7b4dd44 --- /dev/null +++ b/mantools/readme2html @@ -0,0 +1,36 @@ +#!/bin/sh + +# Crude script to convert plain READMEs to HTML + +echo ' + + + + + +Title Here + + + + + + + +

Title Here

' + +sed ' + s/&/\&/g + s//\>/g +' "$@" | awk ' +/^====+$/ { print "

" line "

"; line = ""; getline; next } +NF == 0 { print line; print $0; print "

"; line = $0; next } + { print line; line = $0 } +END { print line } +' + +echo ' + + +' -- cgit v1.2.3