-rwxr-xr-x | doc/generate_apidox | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/doc/generate_apidox b/doc/generate_apidox new file mode 100755 index 0000000..db77e20 --- a/dev/null +++ b/doc/generate_apidox | |||
@@ -0,0 +1,54 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # small shell script to generate our API docs | ||
4 | # it'll copy over qt | ||
5 | |||
6 | # | ||
7 | # create directory structure | ||
8 | echo "Creating directory structure" | ||
9 | rm -rf $OPIEDIR/apidocs | ||
10 | mkdir $OPIEDIR/apidocs | ||
11 | mkdir $OPIEDIR/apidocs/api | ||
12 | mkdir $OPIEDIR/apidocs/common | ||
13 | mkdir $OPIEDIR/apidocs/qt | ||
14 | mkdir $OPIEDIR/apidocs/libqpe | ||
15 | mkdir $OPIEDIR/apidocs/libopie | ||
16 | mkdir $OPIEDIR/apidocs/pim | ||
17 | |||
18 | # now copy qt doc | ||
19 | echo "Scanning and copying QT docu" | ||
20 | cp -R $QTDIR/doc/html/* $OPIEDIR/apidocs/qt | ||
21 | doxytag -t $OPIEDIR/apidocs/qt/qt.tag $OPIEDIR/apidocs/qt | ||
22 | |||
23 | cp -r $OPIEDIR/doc/common/* $OPIEDIR/apidocs/common | ||
24 | # now start with libqpe | ||
25 | echo "Creating docu for qpe" | ||
26 | cp $OPIEDIR/doc/Doxyfile_libqpe $OPIEDIR/library/Doxyfile | ||
27 | cd $OPIEDIR/library | ||
28 | doxygen Doxyfile | ||
29 | rm -f Doxyfile | ||
30 | |||
31 | # now do libopie | ||
32 | echo "Creating docu for libopie" | ||
33 | cp $OPIEDIR/doc/Doxyfile_libopie $OPIEDIR/libopie/Doxyfile | ||
34 | cd $OPIEDIR/libopie | ||
35 | doxygen Doxyfile | ||
36 | rm -f Doxyfile | ||
37 | |||
38 | echo "Creating docu for PIM" | ||
39 | # now it's time for libopie/pim | ||
40 | cp $OPIEDIR/doc/Doxyfile_pim $OPIEDIR/libopie/pim/Doxyfile | ||
41 | cd $OPIEDIR/libopie/pim | ||
42 | doxygen Doxyfile | ||
43 | rm -f Doxyfile | ||
44 | |||
45 | echo "Making mainpage" | ||
46 | # now generate the mainpage | ||
47 | cp $OPIEDIR/doc/Doxyfile_main $OPIEDIR/Doxyfile | ||
48 | cp $OPIEDIR/doc/Mainpage.dox $OPIEDIR/ | ||
49 | cd $OPIEDIR | ||
50 | doxygen Doxyfile | ||
51 | rm -f Doxyfile | ||
52 | rm -f Mainpage.dox | ||
53 | |||
54 | echo "Done with generation!!! hopefully grin" | ||