#!/bin/sh # # convert_man_to_html.sh - ts A80118 # # Generates a HTML version of man page xorriso.1 # # To be executed in the libisoburn toplevel directory (eg. ./libisoburn-0.1.0) # # set -x man_dir=$(pwd)"/xorriso" export MANPATH="$man_dir" manpage="xorriso" raw_html=$(pwd)/"xorriso/raw_man_1_xorriso.html" htmlpage=$(pwd)/"xorriso/man_1_xorriso.html" if test -r "$man_dir"/"$manpage".1 then dummy=dummy else echo "Cannot find readable man page source $1" >&2 exit 1 fi if test -e "$man_dir"/man1 then dummy=dummy else ln -s . "$man_dir"/man1 fi if test "$1" = "-work_as_filter" then # set -x sed \ -e 's///' \ -e 's///' \ -e 's/
−iso_rr_pattern/
\ −as \
\−iso_rr_pattern/' \
-e 's/EXAMPLES):
/EXAMPLES<\/A>):
/' \
-e 's/Writing the result:<\/b>/\
Writing the result:<\/b>
/' \
-e 's/^-find \/ /\ \ -find \/ /' \
-e 's/Settings for data insertion:<\/b>/\
Settings for data insertion:<\/b>
\
/' \
-e 's/^$<\/b> ln -s/\ \ $<\/b> ln -s/' \
-e 's/Settings for result writing:<\/b>/\
Settings for result writing:<\/b>
\
/' \
-e 's/^706k = 706kB/\ \ 706k = 706kB/' \
-e 's/^5540k = 5540kB/\ \ 5540k = 5540kB/' \
-e 's/Exception processing:<\/b>/\
Exception processing:<\/b>
\
/' \
-e 's/Dialog mode control:<\/b>/\
Dialog mode control:<\/b>
\
/' \
-e 's/Drive and media related inquiry actions:<\/b>/\
Drive and media related inquiry actions:<\/b>
\
/' \
-e 's/Navigation in ISO image/\
Navigation in ISO image/' \
-e 's/^filesystem:<\/b>/filesystem:<\/b>
\
/' \
-e 's/osirrox restore options:<\/b>/\
osirrox restore options:<\/b>
\
/' \
-e 's/Command compatibility emulations:<\/b>/\
Command compatibility emulations:<\/b>
\
/' \
-e 's/^
\−as' \
-e 's/Scripting, dialog and/\
Scripting, dialog and/' \
-e 's/^features:<\/b>/features:<\/b>
\
/' \
-e 's/Support for frontend/\
Support for frontend/' \
-e 's/^listening at stdout:<\/b>/listening at stdout:<\/b>
\
/' \
-e 's/xorriso -outdev \/dev\/sr2 \\ -blank fast \\ -pathspecs on/xorriso -outdev \/dev\/sr2 -blank fast -pathspecs on/' \
-e 's/\\ -add \\ \/sounds=\/home\/me\/sounds \\ \/pictures \\ -- \\ -rm_r \\/ -add \/sounds=\/home\/me\/sounds \/pictures -- -rm_r /' \
-e 's/\/sounds\/indecent \\ \’\/pictures\/\*private\*\’ \\/\/sounds\/indecent \’\/pictures\/*private*\’ /' \
-e 's/\/pictures\/confidential \\ -- \\ -add \\/\/pictures\/confidential -- -add/' \
-e 's/xorriso -dev \/dev\/sr2 \\ -rm_r \/sounds -- \\ -mv \\/xorriso -dev \/dev\/sr2 -rm_r \/sounds -- -mv /' \
-e 's/\/pictures\/confidential \\ \/pictures\/restricted \\ -- \\ -chmod/\/pictures\/confidential \/pictures\/restricted -- -chmod/' \
-e 's/go-rwx \/pictures\/restricted -- \\ -pathsspecs on \\ -add \\/go-rwx \/pictures\/restricted -- -pathsspecs on -add /' \
-e 's/\/sounds=\/home\/me\/prepared_for_dvd\/sounds_dummy /\/sounds=\/home\/me\/prepared_for_dvd\/sounds_dummy/' \
-e 's/\/movies=\/home\/me\/prepared_for_dvd\/movies \\ -- \\ -commit/\/movies=\/home\/me\/prepared_for_dvd\/movies -- -commit/' \
-e 's/xorriso -indev \/dev\/sr2 \\ -rm_r \/sounds -- \\/xorriso -indev \/dev\/sr2 -rm_r \/sounds -- /' \
-e 's/-outdev \/dev\/sr0 -blank fast \\ -commit -eject all/-outdev \/dev\/sr0 -blank fast -commit -eject all/' \
-e 's/See section FILES/See section FILES<\/A>/' \
-e 's/See section EXAMPLES/See section EXAMPLES<\/A>/' \
-e 's/<\/body>/