File: gtkdoc.sh

package info (click to toggle)
ganv 0~svn4468~dfsg0-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,232 kB
  • sloc: python: 12,014; ansic: 6,656; cpp: 2,437; sh: 40; makefile: 23
file content (26 lines) | stat: -rwxr-xr-x 661 bytes parent folder | download
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 -