summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/ebuild.sh2
-rw-r--r--doc/package/ebuild/eapi/4.docbook2
-rw-r--r--man/ebuild.52
3 files changed, 3 insertions, 3 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index d0cf84d1e..8abdec94c 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -671,7 +671,7 @@ _eapi4_src_install() {
emake DESTDIR="${D}" install
fi
- if [[ -z $DOCS ]] ; then
+ if ! declare -p DOCS &>/dev/null ; then
local d
for d in README* ChangeLog AUTHORS NEWS TODO CHANGES \
THANKS BUGS FAQ CREDITS CHANGELOG ; do
diff --git a/doc/package/ebuild/eapi/4.docbook b/doc/package/ebuild/eapi/4.docbook
index c379d1148..83ba0dda5 100644
--- a/doc/package/ebuild/eapi/4.docbook
+++ b/doc/package/ebuild/eapi/4.docbook
@@ -263,7 +263,7 @@ src_install() {
emake DESTDIR="${D}" install
fi
- if [[ -z $DOCS ]] ; then
+ if ! declare -p DOCS &>/dev/null ; then
local d
for d in README* ChangeLog AUTHORS NEWS TODO CHANGES \
THANKS BUGS FAQ CREDITS CHANGELOG ; do
diff --git a/man/ebuild.5 b/man/ebuild.5
index dd6a31bf2..1067f82ee 100644
--- a/man/ebuild.5
+++ b/man/ebuild.5
@@ -700,7 +700,7 @@ src_install() {
emake DESTDIR="${D}" install
fi
- if [[ \-z $DOCS ]] ; then
+ if ! declare -p DOCS &>/dev/null ; then
local d
for d in README* ChangeLog AUTHORS NEWS TODO CHANGES \\
THANKS BUGS FAQ CREDITS CHANGELOG ; do