commit:     1c4eb888a7745e793e34f34dbc741cb04a70e204
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Thu Nov  7 14:08:42 2019 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Thu Nov  7 14:08:42 2019 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=1c4eb888

bin/gen-eclass-html.sh: Fix BASENAME test

Signed-off-by: Brian Evans <grknight <AT> gentoo.org>

 bin/gen-eclass-html.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/gen-eclass-html.sh b/bin/gen-eclass-html.sh
index 1aa57f6..d3b0cf2 100755
--- a/bin/gen-eclass-html.sh
+++ b/bin/gen-eclass-html.sh
@@ -38,7 +38,7 @@ EOF
 # We also need the ebuild man page
 for i in $(/usr/bin/qlist eclass-manpages) /usr/share/man/man5/ebuild.5.bz2; do
        BASENAME="$(basename $i .5.bz2)"
-       [[ ${BASENAME} != "${i}" ]] || continue
+       [[ ${BASENAME} != "${i##*/}" ]] || continue
        DIRNAME="${OUTPUTDIR}/${BASENAME}"
        TMP="${DIRNAME}/index.html.tmp"
        FINAL="${DIRNAME}/index.html"

Reply via email to