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
37 # MAKE_SCRDIR=$(abs_srcdir) MAKE_BUILDDIR=$(abs_builddir) gtkdoc-mkhtml ...
38 gtkdocdir
=`dirname $0`
39 #echo "uninstalled, gtkdocdir=$gtkdocdir"
41 # the first two are needed to resolve datadir
43 datarootdir
=@datarootdir@
44 gtkdocdir
=@datadir@
/gtk-doc
/data
47 if head -n 1 $document |
grep "<?xml" > /dev
/null
; then
52 path_option
='--directory'
55 # we could do "$path_option $PWD "
56 # to avoid needing rewriting entities that are copied from the header
58 if test "X$searchpath" = "X"; then
61 path_arg
="$path_option $searchpath"
64 # Delete the old index.sgml file, if it exists.
65 if test -f index.sgml
; then
70 @XSLTPROC@
$path_arg --nonet --xinclude \
71 --stringparam gtkdoc.bookname
$module \
72 --stringparam gtkdoc.version
"@VERSION@" \
73 "$@" $gtkdocdir/gtk-doc.xsl
$document ||
exit $?
75 @JADE@
$path_arg -t @SGML_FORMAT_TYPE@
-w no-idref
-d $gtkdocdir/gtk-doc.dsl \
76 -V "gtkdoc-bookname=$module" -V "gtkdoc-version=@VERSION@" \
77 "$@" $gtkdocdir/gtk-doc.dcl
$document ||
exit $?
80 # copy navigation images and stylesheets to html directory ...
81 cp -f $gtkdocdir/*.png .
82 cp -f $gtkdocdir/*.css .
85 echo "timestamp" > ..
/html.stamp