File: gtkdoc.sh

package info (click to toggle)
ganv 1.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 684 kB
  • sloc: ansic: 6,311; cpp: 4,253; sh: 15; python: 11; makefile: 9
file content (26 lines) | stat: -rwxr-xr-x 662 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

DOC_MODULE=ganv

pwd=`pwd`
echo "gtkdoc.sh: Entering directory \`$pwd/docs'"

mkdir -p docs
cd docs

export CFLAGS="`pkg-config --cflags ganv-1`"
export LDFLAGS="`pkg-config --libs ganv-1`"

# Sources have changed

gtkdoc-scan --rebuild-sections --rebuild-types --ignore-headers=types.h --module=$DOC_MODULE --source-dir=../ganv
gtkdoc-scangobj --module=$DOC_MODULE
gtkdoc-mkdb --module=$DOC_MODULE --output-format=xml --source-dir=../ganv

# XML files have changed
mkdir -p html
cd html && gtkdoc-mkhtml $DOC_MODULE ../ganv-docs.xml && cd -
gtkdoc-fixxref --module=$DOC_MODULE --module-dir=html

echo "gtkdoc.sh: Leaving directory \`$pwd/docs'"
cd -