From aaf29de976ec4e2c655d466f132f33fcfacf6efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 6 Dec 2020 18:07:10 +0100 Subject: [PATCH] doxygen: Determine the module name from the information in .tdescminfo instead of by directory name. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 269bccc9055d7f6ac12e2cee4741f2da4f8b5eb8) --- doxygen.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doxygen.sh b/doxygen.sh index 5af50e4..f5469db 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=""