blob: f3337e4be921e06e5d0193fabfdd16a9135526fc (
plain) (
blame)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
#! /bin/bash -x
#
# Generate Doxygen for Head
#
# Assumes Virtual Machine Setup
if [ ! -r ~/rtems-4.11-work/setenv ] ; then
echo Assume RTEMS VM configuration. Fix me for directories
exit 1
fi
. ~/rtems-4.11-work/setenv
type mscgen 2>/dev/null
if [ $? -ne 0 ] ; then
echo "Warning! "
echo " Missing mscgen. If you want to generate the complete figure set,"
echo " visit http://www.mcternan.me.uk/mscgen/ and look for RPMs and Yum"
echo " instructions."
echo ""
echo " This is not necessary but some figures will be missing."
fi
# RTEMS Source
# Where to put the Doxygen and Texinfo output
onlineDoc=~/rtems-4.11-work/onlinedocs/
test -d ${onlineDoc} || mkdir ${onlineDoc}
# BEGIN SuperCore Doxygen
do_doxy()
{
d=${onlineDoc}/doxygen
outdir=${d}/cpukit
rm -rf ${outdir}
test -d ${outdir} || mkdir -p ${outdir}
cd $r
cd ..
rm -rf b-doc
mkdir b-doc
cd b-doc
$r/configure --target=sparc-rtems4.11 --enable-rtemsbsp=sis \
--disable-networking --disable-tests >c.log 2>&1
make -j3 preinstall >b.log 2>&1
cd sparc-rtems4.11/c/sis/cpukit
#mv Doxyfile Doxyfile.tmp
sed -e "s,^OUTPUT_DIRECTORY.*=.*$,OUTPUT_DIRECTORY = ${outdir}-tmp," \
-e "s,^STRIP_FROM_PATH.*=.*$,STRIP_FROM_PATH = ," \
-e "s,^INPUT.*=.*lib.*$,INPUT = ," \
<Doxyfile >../../../sis/lib/include/Doxyfile
cd ../../../sis/lib/include
doxygen >${d}/doxy.log 2>&1
if [ $? -eq 0 ] ; then
rm -rf ${outdir}
mv ${outdir}-tmp ${outdir}
fi
cd $r/..
}
# END SuperCore Doxygen
do_doxy
exit 0
|