From 8628e244bc73cbf53e59251e0623fc26d0edd1a8 Mon Sep 17 00:00:00 2001 From: Timo Lotterbach Date: Thu, 9 Feb 2012 09:58:00 +0100 Subject: [PATCH] LayerManagement: Added script to generate specification document Since the doxygen generator can not be configured to leave out some parts of the documentation (e.g. Class Documentation), a script was created to create the desired documentation. The Script: - create the html and latex documentation using doxygen - patch the latex files to exclude the unnecessary sections of the document - create the pdf version with correct file name --- generate_specification.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 generate_specification.sh diff --git a/generate_specification.sh b/generate_specification.sh new file mode 100755 index 0000000..28d5403 --- /dev/null +++ b/generate_specification.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +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 +# 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 "printindex" \ + | grep -Ev "{action}|{LayerManagement Command Action Overview}" \ + | grep -Ev "{frequency}|{LayerManagement Command Frequency Overview}" \ + | 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" + -- 2.7.4