#!/bin/sh # # man_xorriso_to_html.sh - ts A80118 , B10309 , B50730 # # 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/Filters for data file content:<\/b>/\
<\/A>Filters for data file content:<\/b>
/' \
-e 's/Writing the result, drive control:<\/b>/\
<\/A>Writing the result, drive control:<\/b>
/' \
-e 's/^-find \/ /\ \ -find \/ /' \
-e 's/^$<\/b> ln -s/\ \ $<\/b> ln -s/' \
-e 's/Settings for result writing:<\/b>/\
<\/A>Settings for result writing:<\/b>
/' \
-e 's/^706k = 706kB/\ \ 706k = 706kB/' \
-e 's/^5540k = 5540kB/\ \ 5540k = 5540kB/' \
-e 's/Bootable ISO images:<\/b>/\
<\/A>Bootable ISO images:<\/b>
/' \
-e 's/Jigdo Template Extraction:<\/b>/\
<\/A>Jigdo Template Extraction:<\/b>
/' \
-e 's/Character sets:<\/b>/\
<\/A>Character sets:<\/b>
/' \
-e 's/Exception processing:<\/b>/\
<\/A>Exception processing:<\/b>
/' \
-e 's/Dialog mode control:
−dialog<\/b>/\
<\/A>Dialog mode control:<\/b>
\
-dialog<\/b>/' \
-e 's/Drive and media related inquiry actions:
−devices<\/b>/\
<\/A>Drive and media related inquiry actions:<\/b>
\
-devices<\/b>/' \
-e 's/Navigation in ISO image and disk filesystem:
−cd/\
<\/A>Navigation in ISO image and disk filesystem:<\/b>
\
-cd<\/b>/' \
-e 's/Evaluation of readability and recovery:<\/b>/\
<\/A>Evaluation of readability and recovery:<\/b>
/' \
-e 's/osirrox ISO-to-disk restore commands:<\/b>/\
<\/A>osirrox ISO-to-disk restore commands:<\/b>
/' \
-e 's/Command compatibility emulations:<\/b>/\
<\/A>Command compatibility emulations:<\/b>
/' \
-e 's/^
\−as' \
-e 's/Scripting, dialog and program control features:<\/b>/\
<\/A>Scripting, dialog and program control features:<\/b>
\
/' \
-e 's/Support for frontend programs via stdin and stdout:
−pkt_output<\/b>/\
<\/A>Support for frontend programs via stdin and stdout:<\/b>
\
-pkt_output<\/b>/' \
-e 's/disk_path_stdin disk_path_stdout
/disk_path_stdin disk_path_stdout/' \
-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>/