Reacting on changes in the output of my local man -H

This commit is contained in:
2015-07-31 16:58:38 +00:00
parent e65ab7648a
commit 0adcb08a86
5 changed files with 190 additions and 60 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
#
# man_xorrisofs_to_html.sh - ts A80118 , B10309
# man_xorrisofs_to_html.sh - ts A80118 , B10309 , B50730
#
# Generates a HTML version of man page xorrisofs.1
#
@ -42,22 +42,23 @@ then
-e 's/<title>XORRISOFS<\/title>/<title>man 1 xorrisofs<\/title>/' \
-e 's/<h1 align=center>XORRISOFS<\/h1>/<h1 align=center>man 1 xorrisofs<\/h1>/' \
-e 's/<body>/<body BGCOLOR="#F5DEB3" TEXT=#000000 LINK=#0000A0 VLINK=#800000>/' \
-e 's/<b>ISO 9660, Rock Ridge, Joliet, HFS+:<\/b>/\&nbsp;<BR><b>ISO 9660, Rock Ridge, Joliet, HFS+:<\/b>/' \
-e 's/<b>Inserting files into the ISO image:<\/b>/\&nbsp;<BR><b>Inserting files into the ISO image:<\/b>/' \
-e 's/<b>Relation to program xorriso:<\/b>/\&nbsp;<BR><b>Relation to program xorriso:<\/b>/' \
-e 's/<b>ISO 9660, Rock Ridge, Joliet, HFS+: <br> ISO 9660<\/b>/\&nbsp;<BR><b>ISO 9660, Rock Ridge, Joliet, HFS+:<\/b><BR>\&nbsp;<BR><b>ISO 9660<\/b>/' \
-e 's/<b>Inserting files into the ISO image: <br> xorrisofs<\/b>/\&nbsp;<BR><b>Inserting files into the ISO image:<\/b><BR>\&nbsp;<BR><b>xorrisofs<\/b>/' \
-e 's/<b>Relation to program xorriso: <br> xorrisofs<\/b>/\&nbsp;<BR><b>Relation to program xorriso:<\/b><BR>\&nbsp;<BR><b>xorrisofs<\/b>/' \
-e 's/EXAMPLES):<br>/<A HREF="#EXAMPLES">EXAMPLES<\/A>):<br>/' \
-e 's/<b>Image loading:<\/b>/\&nbsp;<BR><b>Image loading:<\/b><BR>\&nbsp;<BR>/' \
-e 's/<b>Settings for file insertion:<\/b>/\&nbsp;<BR><b>Settings for file insertion:<\/b><BR>\&nbsp;<BR>/' \
-e 's/<b>Settings for image production:<\/b>/\&nbsp;<BR><b>Settings for image production:<\/b><BR>\&nbsp;<BR>/' \
-e 's/<b>Settings for standards compliance:<\/b>/\&nbsp;<BR><b>Settings for standards compliance:<\/b><BR>\&nbsp;<BR>/' \
-e 's/<b>Image loading:<\/b>/<b>Image loading:<\/b><BR>/' \
-e 's/<b>Settings for file insertion: <br> \&minus;path-list<\/b>/\&nbsp;<BR><b>Settings for file insertion:<\/b><BR>\&nbsp;<BR><b>-path-list<\/b>/' \
-e 's/<b>Settings for image production: <br> &minus;o<\/b>/\&nbsp;<BR><b>Settings for image production:<\/b><BR>\&nbsp;<BR><b>-o<\/b>/' \
-e 's/<b>Settings for standards compliance: <br> \&minus;iso-level<\/b>/\&nbsp;<BR><b>Settings for standards compliance:<\/b><BR>\&nbsp;<BR><b>-iso-level<\/b>/' \
-e 's/<b>Settings for standards extensions:<\/b>/\&nbsp;<BR><b>Settings for standards extensions:<\/b><BR>\&nbsp;<BR>/' \
-e 's/<b>Settings for file hiding:<\/b>/\&nbsp;<BR><b>Settings for file hiding:<\/b><BR>\&nbsp;<BR>/' \
-e 's/<b>ISO image ID strings:<\/b>/\&nbsp;<BR><b>ISO image ID strings:<\/b><BR>\&nbsp;<BR>/' \
-e 's/<b>El Torito Bootable ISO images:<\/b>/\&nbsp;<BR><b>El Torito Bootable ISO images:<\/b><BR>\&nbsp;<BR>/' \
-e 's/<b>System Area, MBR, other boot blocks:<\/b>/\&nbsp;<BR><b>System Area, MBR, other boot blocks:<\/b><BR>\&nbsp;<BR>/' \
-e 's/<b>Character sets:<\/b>/\&nbsp;<BR><b>Character sets:<\/b><BR>\&nbsp;<BR>/' \
-e 's/<b>Jigdo Template Extraction:<\/b>/\&nbsp;<BR><b>Jigdo Template Extraction:<\/b><BR>\&nbsp;<BR>/' \
-e 's/<b>Miscellaneous options:<\/b>/\&nbsp;<BR><b>Miscellaneous options:<\/b><BR>\&nbsp;<BR>/' \
-e 's/<b>Settings for file hiding: <br> \&minus;hide<\/b>/\&nbsp;<BR><b>Settings for file hiding:<\/b><BR>\&nbsp;<BR><b>-hide<\/b>/' \
-e 's/<b>ISO image ID strings:<\/b>/\&nbsp;<BR><b>ISO image ID strings:<\/b><BR>/' \
-e 's/<b>El Torito Bootable ISO images:<\/b>/\&nbsp;<BR><b>El Torito Bootable ISO images:<\/b><BR>/' \
-e 's/<b>System Area, MBR, GPT, APM, other boot blocks:<\/b>/\&nbsp;<BR><b>System Area, MBR, GPT, APM, other boot blocks:<\/b><BR>/' \
-e 's/<b><br> &minus;G<\/b> disk_path/<BR>\&nbsp;<BR><b>-G<\/b> disk_path/' \
-e 's/<b>Character sets:<\/b>/\&nbsp;<BR><b>Character sets:<\/b><BR>/' \
-e 's/<b>Jigdo Template Extraction:<\/b>/\&nbsp;<BR><b>Jigdo Template Extraction:<\/b><BR>/' \
-e 's/<b>Miscellaneous options: <br> &minus;print-size<\/b>/\&nbsp;<BR><b>Miscellaneous options:<\/b><BR>\&nbsp;<BR><b>-print-size<\/b>/' \
\
-e 's/<\/body>/<BR><HR><FONT SIZE=-1><CENTER>(HTML generated from '"$manpage"'.1 on '"$(date)"' by '$(basename "$0")' )<\/CENTER><\/FONT><\/body>/' \
-e 's/&minus;/-/g' \
@ -71,8 +72,10 @@ then
else
export BROWSER='cp "%s" '"$raw_html"
# export BROWSER='cp "%s" '"$raw_html"
export BROWSER=$(pwd)/'xorriso/unite_html_b_line "%s" '"$raw_html"
man -H "$manpage"
# cp "$raw_html" /tmp/x.html
"$0" -work_as_filter "$raw_html"
rm "$raw_html"
rm "$man_dir"/man1