5 Usage: gtkdoc-mkhtml [--path=SEARCH_PATH] MODULE DRIVER_FILE [BACKEND_OPTIONS...]"
9 # parse options, ignore unknown options for future extensions
15 X--version
) echo "@VERSION@"; exit 0;;
16 X--help
) echo "$usage"; exit 0;;
17 X--uninstalled
) uninstalled
=yes; shift;;
18 X--path
=*) searchpath
=`echo $1 | sed s/.*=//`; shift;;
24 if test $# -lt 2; then
34 if test $uninstalled = yes; then
35 # this does not work from buiddir!=srcdir
36 gtkdocdir
=`dirname $0`
37 if test ! -e $gtkdocdir/gtk-doc.xsl
; then
38 # try to src dir (set from makefiles) too
39 if test -e $ABS_TOP_SRCDIR/gtk-doc.xsl
; then
40 gtkdocdir
=$ABS_TOP_SRCDIR
43 #echo "uninstalled, gtkdocdir=$gtkdocdir, cwd=$PWD"
45 # the first two are needed to resolve datadir
47 datarootdir
=@datarootdir@
48 gtkdocdir
=@datadir@
/gtk-doc
/data
51 if head -n 1 $document |
grep "<?xml" > /dev
/null
; then
56 path_option
='--directory'
59 # we could do "$path_option $PWD "
60 # to avoid needing rewriting entities that are copied from the header
62 if test "X$searchpath" = "X"; then
65 path_arg
="$path_option $searchpath"
68 # Delete the old index.sgml file, if it exists.
69 if test -f index.sgml
; then
74 #echo @XSLTPROC@ $path_arg --nonet --xinclude \
75 # --stringparam gtkdoc.bookname $module \
76 # --stringparam gtkdoc.version "@VERSION@" \
77 # "$@" $gtkdocdir/gtk-doc.xsl $document
78 @XSLTPROC@
$path_arg --nonet --xinclude \
79 --stringparam gtkdoc.bookname
$module \
80 --stringparam gtkdoc.version
"@VERSION@" \
81 "$@" $gtkdocdir/gtk-doc.xsl
$document ||
exit $?
83 @JADE@
$path_arg -t @SGML_FORMAT_TYPE@
-w no-idref
-d $gtkdocdir/gtk-doc.dsl \
84 -V "gtkdoc-bookname=$module" -V "gtkdoc-version=@VERSION@" \
85 "$@" $gtkdocdir/gtk-doc.dcl
$document ||
exit $?
88 # copy navigation images and stylesheets to html directory ...
89 cp -f $gtkdocdir/*.png .
/
90 cp -f $gtkdocdir/*.css .
/
93 echo "timestamp" > ..
/html.stamp