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 | |
---|
4 | usage="\ |
---|
5 | Usage: gtkdoc-mkhtml MODULE DRIVER_FILE" |
---|
6 | |
---|
7 | if test "x$1" = "x--version"; then |
---|
8 | echo "@VERSION@" |
---|
9 | exit 0 |
---|
10 | fi |
---|
11 | |
---|
12 | if test $# -ne 2; then |
---|
13 | echo "${usage}" 1>&2 |
---|
14 | exit 1 |
---|
15 | fi |
---|
16 | |
---|
17 | module=$1 |
---|
18 | document=$2 |
---|
19 | |
---|
20 | prefix=@prefix@ |
---|
21 | gtkdocdir=@datadir@/gtk-doc/data |
---|
22 | |
---|
23 | declaration=$gtkdocdir/gtk-doc.dcl |
---|
24 | |
---|
25 | if head -n 1 $document | grep "<?xml" > /dev/null; then |
---|
26 | is_xml=true |
---|
27 | else |
---|
28 | is_xml=false |
---|
29 | fi |
---|
30 | |
---|
31 | # Delete the old index.sgml file, if it exists. |
---|
32 | if test -f index.sgml; then |
---|
33 | rm -f index.sgml |
---|
34 | fi |
---|
35 | |
---|
36 | if $is_xml; then |
---|
37 | @XSLTPROC@ --nonet --xinclude \ |
---|
38 | --stringparam gtkdoc.bookname $module \ |
---|
39 | --stringparam gtkdoc.version "@VERSION@" \ |
---|
40 | $gtkdocdir/gtk-doc.xsl $document || exit $? |
---|
41 | else |
---|
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 $? |
---|
45 | fi |
---|
46 | |
---|
47 | # copy navigation images to html directory ... |
---|
48 | cp -f $gtkdocdir/*.png . |
---|
49 | |
---|
50 | |
---|
51 | echo "timestamp" > ../html.stamp |
---|
52 | |
---|
Note: See
TracBrowser
for help on using the repository browser.