6 gtkdoc-mkman version @VERSION@ - generate documentation in man 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
17 # parse options, ignore unknown options for future extensions
24 X--version
) echo "@VERSION@"; exit 0;;
25 X--help
) usage
; exit 0;;
26 X--uninstalled
) uninstalled
=yes; shift;;
27 X--verbose
) verbose
="1"; shift;;
28 X--path
=*) searchpath
=`echo $1 | sed s/.*=//`; shift;;
34 if test $# -ne 2; then
45 if test $verbose = "1"; then
49 if test $uninstalled = yes; then
50 # this does not work from buiddir!=srcdir
51 gtkdocdir
=`dirname $0`
52 #echo "uninstalled, gtkdocdir=$gtkdocdir"
54 # the first two are needed to resolve datadir
56 datarootdir
=@datarootdir@
57 gtkdocdir
=@datadir@
/gtk-doc
/data
60 if head -n 1 $document |
grep "<?xml" > /dev
/null
; then
65 path_option
='--directory'
68 # we could do "$path_option $PWD "
69 # to avoid needing rewriting entities that are copied from the header
71 if test "X$searchpath" = "X"; then
74 path_arg
="$path_option $searchpath"
77 # would it make sens to create man pages only for certain refentries
80 # see http://bugzilla.gnome.org/show_bug.cgi?id=467488
81 @XSLTPROC@
$path_arg --nonet --xinclude \
82 --stringparam gtkdoc.bookname
$module \
83 --stringparam gtkdoc.version
"@VERSION@" \
84 --stringparam chunk.quietly
$quiet \
85 --stringparam chunker.output.quiet
$quiet \
86 manpages
/docbook.xsl
$document ||
exit $?
88 for i
in `cd sgml;ls *.sgml`; do
89 j
=`echo $i | sed 's/.sgml/.man/'`
90 echo ": converting " $i $j
91 docbook-to-man sgml
/$i > man
/$j 2> man
/$j.log