6 gtkdoc-mkhtml version @VERSION@ - generate documentation in html format
8 --verbose Print extra output while processing
9 --path=SEARCH_PATH Extra source directories
10 MODULE Name of the doc module being parsed
11 DRIVER_FILE File containing the toplevel DocBook file.
12 --version Print the version of this program
13 --help Print this help
19 # parse options, ignore unknown options for future extensions
26 X--version
) echo "@VERSION@"; exit 0;;
27 X--help
) usage
; exit 0;;
28 X--uninstalled
) uninstalled
=yes; shift;;
29 X--verbose
) verbose
="1"; shift;;
30 X--path
=*) searchpath
=`echo $1 | sed s/.*=//`; shift;;
36 if test $# -lt 2; then
47 if test $verbose = "1"; then
51 if test $uninstalled = yes; then
52 # this does not work from buiddir!=srcdir
53 gtkdocdir
=`dirname $0`
54 # traditional Bourne shells may not support -e here, use -f
55 if test ! -f $gtkdocdir/gtk-doc.xsl
; then
56 # try to src dir (set from makefiles) too
57 if test -f $ABS_TOP_SRCDIR/gtk-doc.xsl
; then
58 gtkdocdir
=$ABS_TOP_SRCDIR
61 #echo "uninstalled, gtkdocdir=$gtkdocdir, cwd=$PWD"
63 # the first two are needed to resolve datadir
65 datarootdir
=@datarootdir@
66 gtkdocdir
=@datadir@
/gtk-doc
/data
69 if head -n 1 $document |
grep "<?xml" > /dev
/null
; then
74 path_option
='--directory'
77 # we could do "$path_option $PWD "
78 # to avoid needing rewriting entities that are copied from the header
80 if test "X$searchpath" = "X"; then
83 path_arg
="$path_option $searchpath"
86 # Delete the old index.sgml file, if it exists.
87 if test -f index.sgml
; then
92 #echo @XSLTPROC@ $path_arg --nonet --xinclude \
93 # --stringparam gtkdoc.bookname $module \
94 # --stringparam gtkdoc.version "@VERSION@" \
95 # "$@" $gtkdocdir/gtk-doc.xsl $document
96 @XSLTPROC@
$path_arg --nonet --xinclude \
97 --stringparam gtkdoc.bookname
$module \
98 --stringparam gtkdoc.version
"@VERSION@" \
99 --stringparam chunk.quietly
$quiet \
100 --stringparam chunker.output.quiet
$quiet \
101 "$@" $gtkdocdir/gtk-doc.xsl
$document ||
exit $?
103 @JADE@
$path_arg -t @SGML_FORMAT_TYPE@
-w no-idref
-d $gtkdocdir/gtk-doc.dsl \
104 -V "gtkdoc-bookname=$module" -V "gtkdoc-version=@VERSION@" \
105 "$@" $gtkdocdir/gtk-doc.dcl
$document ||
exit $?
108 # copy navigation images and stylesheets to html directory ...
109 cp -f $gtkdocdir/*.png .
/
110 cp -f $gtkdocdir/*.css .
/
113 echo "timestamp" > ..
/html.stamp