LATEX_PATH=./doc_generated/latex
PDF_NAME=GENIVI_LayerManagement_Design_v2_0_MG0001
+
+#==============================================================================
echo "starting doxygen."
+#==============================================================================
echo "generating html and latex documentation..."
doxygen
-# doxygen will generate more section of the document
+#==============================================================================
+echo "patching latex main document..."
+#==============================================================================
+# doxygen will generate more sections of the document
# than neccessary for the specififcation document.
# This processing step removes the unneccessary sections
# from the main latex file, so they won't be included in
# the resulting PDF file.
-echo "patching latex main document..."
+
MAIN_PAGE=`cat $LATEX_PATH/refman.tex`
echo "$MAIN_PAGE" \
| grep -Ev "{struct|{class" \
| grep -Ev "{Class Documentation}" \
> $LATEX_PATH/refman.tex
+
+#==============================================================================
echo "creating PDF from latex documentation."
+#==============================================================================
cd $LATEX_PATH
make &> /dev/null
cd -
+
+#==============================================================================
echo "applying name to PDF document..."
+#==============================================================================
cp $LATEX_PATH/refman.pdf ./$PDF_NAME.pdf
+
+#==============================================================================
echo "The LayerManagement specification was stored here:"
+#==============================================================================
echo "`pwd`/$PDF_NAME.pdf"