diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-05-02 15:11:39 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-05-02 15:14:40 -0500 |
commit | 37f34371810e1033643b2bd79977b86a7d66a488 (patch) | |
tree | 836ecb060b6e88473f70db5846c3902d886626b8 /vm-help/do_doxygen | |
parent | rtems-testing shell scripts: Use env not eval (diff) | |
download | rtems-testing-37f34371810e1033643b2bd79977b86a7d66a488.tar.bz2 |
vm-help: Virtual Machine Helpers
Diffstat (limited to 'vm-help/do_doxygen')
-rwxr-xr-x | vm-help/do_doxygen | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/vm-help/do_doxygen b/vm-help/do_doxygen new file mode 100755 index 0000000..f3337e4 --- /dev/null +++ b/vm-help/do_doxygen @@ -0,0 +1,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 |