summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/doman3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/doman b/bin/doman
index 61040469f..249768218 100755
--- 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