diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-12-06 18:07:10 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-12-07 03:35:10 +0100 |
commit | aaf29de976ec4e2c655d466f132f33fcfacf6efc (patch) | |
tree | dac488ba5d7d3cc43d91422f3fb8137e546baa13 | |
parent | 5ddda7dc4441662a6f3894a26b1d1346247dd213 (diff) | |
download | admin-aaf29de976ec4e2c655d466f132f33fcfacf6efc.tar.gz admin-aaf29de976ec4e2c655d466f132f33fcfacf6efc.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-x | doxygen.sh | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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="" |