summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-12-06 18:07:10 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-12-07 03:35:03 +0100
commitbb60143a03d7d39b35d689d425ddfe0561ac5972 (patch)
tree663d2fe17b65cda19a0723de6eb2efa2502cd4a3
parentd21a3c916415fd3b02b40083da161ab58504df94 (diff)
downloadadmin-bb60143a03d7d39b35d689d425ddfe0561ac5972.tar.gz
admin-bb60143a03d7d39b35d689d425ddfe0561ac5972.zip
doxygen: Determine the module name from the information in .tdescminfo
instead of by directory name. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 269bccc9055d7f6ac12e2cee4741f2da4f8b5eb8)
-rwxr-xr-xdoxygen.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/doxygen.sh b/doxygen.sh
index 4b01c88..e754ddd 100755
--- a/doxygen.sh
+++ b/doxygen.sh
@@ -117,8 +117,12 @@ fi
### but no recursion either).
###
# top_srcdir="$1" # Already set by options processing
-module_name=`basename "$top_srcdir"`
-module_name=`echo "$module_name" | awk -F '-' '{print $1}'`
+if test -f $top_srcdir/.tdescminfo; then
+ module_name=`sed -n "s|^Name: ||p" $top_srcdir/.tdescminfo | xargs -r basename`
+else
+ module_name=`basename "$top_srcdir"`
+ module_name=`echo "$module_name" | awk -F '-' '{print $1}'`
+fi
subdir="$2"
if test "x." = "x$subdir" ; then
subdir=""