source: trunk/third/gtk-doc/gtkdoc-mkhtml.in @ 20745

Revision 20745, 1013 bytes checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20744, which included commits to RCS files with non-trunk default branches.
Line 
1#!/bin/sh
2#
3
4usage="\
5Usage: gtkdoc-mkhtml MODULE DRIVER_FILE"
6
7if test "x$1" = "x--version"; then
8      echo "@VERSION@"
9      exit 0
10fi
11
12if test $# -ne 2; then
13      echo "${usage}" 1>&2
14      exit 1
15fi
16
17module=$1
18document=$2
19
20prefix=@prefix@
21gtkdocdir=@datadir@/gtk-doc/data
22
23declaration=$gtkdocdir/gtk-doc.dcl
24
25if head -n 1 $document | grep "<?xml" > /dev/null; then
26  is_xml=true
27else
28  is_xml=false
29fi
30
31# Delete the old index.sgml file, if it exists.
32if test -f index.sgml; then
33      rm -f index.sgml
34fi
35
36if $is_xml; then
37  @XSLTPROC@ --nonet --xinclude \
38      --stringparam gtkdoc.bookname $module \
39      --stringparam gtkdoc.version "@VERSION@" \
40      $gtkdocdir/gtk-doc.xsl $document || exit $?
41else
42  @JADE@ -t @SGML_FORMAT_TYPE@ -w no-idref -d $gtkdocdir/gtk-doc.dsl \
43      -V "gtkdoc-bookname=$module" -V "gtkdoc-version=@VERSION@" \
44      $gtkdocdir/gtk-doc.dcl $document || exit $?
45fi
46
47# copy navigation images to html directory ...
48cp -f $gtkdocdir/*.png .
49
50
51echo "timestamp" > ../html.stamp
52
Note: See TracBrowser for help on using the repository browser.