Make the new behavior from bug #222439 conditional on EAPI being something
authorZac Medico <zmedico@gentoo.org>
Wed, 28 May 2008 01:27:56 +0000 (01:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 28 May 2008 01:27:56 +0000 (01:27 -0000)
other than 0 or 1.

svn path=/main/trunk/; revision=10462

bin/doman

index 61040469f1e8992b5bbb0e15c95b0fbc3fe703e4..249768218652108f1d7eb09773ae1545dc3501a0 100755 (executable)
--- a/bin/doman
+++ b/bin/doman
@@ -31,7 +31,8 @@ for x in "$@" ; do
                suffix=${realname##*.}
        fi
 
-       if [[ $x =~ (.*)\.([a-z][a-z](_[A-Z][A-Z])?)\.(.*) ]] ; then
+       if ! hasq "${EAPI:-0}" 0 1 && \
+               [[ $x =~ (.*)\.([a-z][a-z](_[A-Z][A-Z])?)\.(.*) ]] ; then
                name=${BASH_REMATCH[1]##*/}.${BASH_REMATCH[4]}
                mandir=${BASH_REMATCH[2]}/man${suffix:0:1}
        else