Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Staging 'einstalldocs' for EAPI 6
Date: Thu, 22 Aug 2013 08:53:33
Message-Id: 20130822105327.1a177b2b@gentoo.org
In Reply to: Re: [gentoo-dev] Staging 'einstalldocs' for EAPI 6 by "Michał Górny"
1 Second version:
2
3 einstalldocs() {
4 if ! declare -p DOCS &>/dev/null ; then
5 local d
6 for d in README* ChangeLog AUTHORS NEWS TODO CHANGES \
7 THANKS BUGS FAQ CREDITS CHANGELOG ; do
8 [[ -s ${d} ]] && dodoc "${d}"
9 done
10 elif [[ $(declare -p DOCS) == 'declare -a'* ]] ; then
11 [[ ${DOCS[@]} ]] && dodoc -r "${DOCS[@]}"
12 else
13 [[ ${DOCS} ]] && dodoc -r ${DOCS}
14 fi
15
16 if [[ $(declare -p HTML_DOCS 2>/dev/null) == 'declare -a'* ]] ; then
17 [[ ${HTML_DOCS[@]} ]] && dohtml -r "${HTML_DOCS[@]}"
18 else
19 [[ ${HTML_DOCS} ]] && dohtml -r ${HTML_DOCS}
20 fi
21
22 return 0
23 }
24
25 --
26 Best regards,
27 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] Staging 'einstalldocs' for EAPI 6 Ulrich Mueller <ulm@g.o>