From bf6b4764db49f64f3536c472442a45159f4623c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 6 May 2015 23:09:49 +0000 Subject: [PATCH] better doxygen support --- ChangeLog | 12 +++++ bootstrap.sh | 49 +++++++++++++++--- doc/doxyfile.in | 93 ++++++++++++++++++----------------- scripts/doxygen-webtester.sed | 26 +++++++--- scripts/example.wt | 13 ----- scripts/makefile.am | 3 ++ 6 files changed, 122 insertions(+), 74 deletions(-) delete mode 100644 scripts/example.wt diff --git a/ChangeLog b/ChangeLog index a9f3e8a..04605cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2015-05-06 16:56 marc + + * debian/control.in: reprepo requires a section + +2015-05-06 14:51 marc + + * ChangeLog, ax_init_standard_project.m4, bootstrap.sh, + configure.ac, makefile.am, scripts, + scripts/doxygen-webtester.sed, scripts/example.wt, + scripts/makefile.am: added doxygen-webtester.sed do generate + doxygen from webtester files + 2015-05-06 07:56 marc * ChangeLog, debian/.dirs, debian/.install, debian/webtester.dirs, diff --git a/bootstrap.sh b/bootstrap.sh index 24c18e0..bbcbdf7 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -322,11 +322,22 @@ copy() { doxyreplace() { echo -en "\e[1m-> doxyfile:\e[0m configure $1 ..." - if sed -i 's|\(^'"$1"' *=\) *|\1'" $2"'|g' doc/doxyfile.in; then + if sed -i 's|\(^'"$1"' *=\) *.*|\1'" $2"'|g' doc/doxyfile.in; then echo -e " \e[32msuccess\e[0m" else echo -e " \e[31merror\e[0m" - echo -e "\e[1m**** command: sed -i 's|\(^'"$1"' *=\) *|\1'" $2"'|g' doc/doxyfile.in;\e[0m" + echo -e "\e[1m**** command: $0 $*\e[0m" + exit 1 + fi +} + +doxyadd() { + echo -en "\e[1m-> doxyfile:\e[0m configure $1 ..." + if sed -i '/^'"$1"' *=/a'"$1"' += '"$2" doc/doxyfile.in; then + echo -e " \e[32msuccess\e[0m" + else + echo -e " \e[31merror\e[0m" + echo -e "\e[1m**** command: $0 $*\e[0m" exit 1 fi } @@ -368,7 +379,7 @@ EOF exit 0 fi PACKAGE_NAME=$(sed -n 's/.*m4_define *( *x_package_name *, *\([^ ]*\) *).*/\1/p' configure.ac) -echo "${HEADER}" | to --condition AX_USE_CXX src/makefile.am +echo "${HEADER}MAINTAINERCLEANFILES = makefile.in" | to --condition AX_USE_CXX src/makefile.am to --condition AX_USE_CXX src/version.hxx <