From 68ca90d75caab59d5a33a8ca4f2dfb7c57474a04 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 19 Feb 2011 15:27:32 -0800 Subject: [PATCH] _eapi4_src_install: handle empty DOCS like PMS This will fix bug #355635. --- bin/ebuild.sh | 2 +- doc/package/ebuild/eapi/4.docbook | 2 +- man/ebuild.5 | 2 +- 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 -- 2.26.2