#!/bin/sh # # man_xorriso_to_html.sh - ts A80118 , B10309 # # 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/
Session model
/
Session model<\/A> −iso_rr_pattern/ \ −as \
/' \
-e 's/^Media types and states/Media types and states/' \
-e 's/^Creating, Growing, Modifying, Blind Growing/Creating, Growing, Modifying, Blind Growing<\/A>/' \
-e 's/^Libburn drives/Libburn drives<\/A>/' \
-e 's/^Rock Ridge, POSIX, X\/Open, El Torito, ACL, xattr/Rock Ridge, POSIX, X\/Open, El Torito, ACL, xattr<\/A>/' \
-e 's/^Command processing/Command processing<\/A>/' \
-e 's/^Dialog, Readline, Result pager/Dialog, Readline, Result pager<\/A>/' \
-e 's/have a look at section EXAMPLES/have a look at section EXAMPLES<\/A>/' \
-e 's/Session model:<\/b>/\
<\/A>Session model:<\/b>/' \
-e 's/Media types and states:<\/b>/\
<\/A>Media types and states:<\/b>/' \
-e 's/Creating, Growing, Modifying, Blind/\
<\/A>Creating, Growing, Modifying, Blind/' \
-e 's/Libburn drives:<\/b>/\
Libburn drives:<\/b><\/A>/' \
-e 's/^-dev /\ \ -dev /' \
-e 's/^-devices /\ \ -devices /' \
-e 's/Rock Ridge, POSIX, X\/Open, El Torito, ACL,/\
<\/A>Rock Ridge, POSIX, X\/Open, El Torito, ACL,/' \
-e 's/Command processing:<\/b>/\
<\/A>Command processing:<\/b>/' \
-e 's/Dialog, Readline, Result pager:<\/b>/\
<\/ADialog, Readline, Result pager:<\/b>/' \
-e 's/Execution order of program arguments:<\/b>/\
<\/A>Execution order of program arguments:<\/b>
\
/' \
-e 's/Acquiring source and target drive:<\/b>/\
<\/A>Acquiring source and target drive:<\/b>
\
/' \
-e 's/Influencing the behavior of image/\
<\/A>Influencing the behavior of image/' \
-e 's/Inserting files into ISO image:<\/b>/\
<\/A>Inserting files into ISO image:<\/b>
\
/' \
-e 's/Settings for file insertion:<\/b>/\
<\/A>Settings for file insertion:<\/b>
\
/' \
-e 's/File manipulations:<\/b>/\
<\/A>File manipulations:<\/b>
\
/' \
-e 's/Tree traversal command -find:<\/b>/\
<\/A>Tree traversal command -find:<\/b>
\
/' \
-e 's/^
\−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:<\/b>/\
<\/A>Dialog mode control:<\/b>
\
/' \
-e 's/Drive and media related inquiry actions:<\/b>/\
<\/A>Drive and media related inquiry actions:<\/b>
\
/' \
-e 's/Navigation in ISO image/\
<\/A>Navigation in ISO image/' \
-e 's/^filesystem:<\/b>/filesystem:<\/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/\
<\/A>Scripting, dialog and/' \
-e 's/^features:<\/b>/features:<\/b>
\
/' \
-e 's/Support for frontend/\
<\/A>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>/