public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michal Gorny (mgorny)" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog eutils.eclass
Date: Sat, 14 Sep 2013 19:00:10 +0000 (UTC)	[thread overview]
Message-ID: <20130914190010.3E06E2004C@flycatcher.gentoo.org> (raw)

mgorny      13/09/14 19:00:10

  Modified:             ChangeLog eutils.eclass
  Log:
  Support EAPIs < 4 in einstalldocs properly.

Revision  Changes    Path
1.964                eclass/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.964&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.964&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.963&r2=1.964

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.963
retrieving revision 1.964
diff -u -r1.963 -r1.964
--- ChangeLog	13 Sep 2013 15:08:37 -0000	1.963
+++ ChangeLog	14 Sep 2013 19:00:10 -0000	1.964
@@ -1,6 +1,9 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.963 2013/09/13 15:08:37 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.964 2013/09/14 19:00:10 mgorny Exp $
+
+  14 Sep 2013; Michał Górny <mgorny@gentoo.org> eutils.eclass:
+  Support EAPIs < 4 in einstalldocs properly.
 
   13 Sep 2013; Michał Górny <mgorny@gentoo.org> git-r3.eclass:
   Fail early on unreachable URLs. If ls-remote fails due to server being



1.427                eclass/eutils.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/eutils.eclass?rev=1.427&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/eutils.eclass?rev=1.427&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/eutils.eclass?r1=1.426&r2=1.427

Index: eutils.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v
retrieving revision 1.426
retrieving revision 1.427
diff -u -r1.426 -r1.427
--- eutils.eclass	13 Sep 2013 11:22:52 -0000	1.426
+++ eutils.eclass	14 Sep 2013 19:00:10 -0000	1.427
@@ -1,6 +1,6 @@
 # Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.426 2013/09/13 11:22:52 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.427 2013/09/14 19:00:10 mgorny Exp $
 
 # @ECLASS: eutils.eclass
 # @MAINTAINER:
@@ -1648,22 +1648,35 @@
 einstalldocs() {
 	debug-print-function ${FUNCNAME} "${@}"
 
+	local dodoc_opts=-r
+	has ${EAPI} 0 1 2 3 && dodoc_opts=
+
 	if ! declare -p DOCS &>/dev/null ; then
 		local d
 		for d in README* ChangeLog AUTHORS NEWS TODO CHANGES \
 				THANKS BUGS FAQ CREDITS CHANGELOG ; do
-			[[ -s ${d} ]] && dodoc "${d}"
+			if [[ -s ${d} ]] ; then
+				dodoc "${d}" || die
+			fi
 		done
 	elif [[ $(declare -p DOCS) == "declare -a"* ]] ; then
-		[[ ${DOCS[@]} ]] && dodoc -r "${DOCS[@]}"
+		if [[ ${DOCS[@]} ]] ; then
+			dodoc ${dodoc_opts} "${DOCS[@]}" || die
+		fi
 	else
-		[[ ${DOCS} ]] && dodoc -r ${DOCS}
+		if [[ ${DOCS} ]] ; then
+			dodoc ${dodoc_opts} ${DOCS} || die
+		fi
 	fi
 
 	if [[ $(declare -p HTML_DOCS 2>/dev/null) == "declare -a"* ]] ; then
-		[[ ${HTML_DOCS[@]} ]] && dohtml -r "${HTML_DOCS[@]}"
+		if [[ ${HTML_DOCS[@]} ]] ; then
+			dohtml -r "${HTML_DOCS[@]}" || die
+		fi
 	else
-		[[ ${HTML_DOCS} ]] && dohtml -r ${HTML_DOCS}
+		if [[ ${HTML_DOCS} ]] ; then
+			dohtml -r ${HTML_DOCS} || die
+		fi
 	fi
 
 	return 0





             reply	other threads:[~2013-09-14 19:00 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-14 19:00 Michal Gorny (mgorny) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-01-14 22:50 [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog eutils.eclass Michal Gorny (mgorny)
2014-12-30  7:24 William Hubbs (williamh)
2013-12-28 17:19 Michal Gorny (mgorny)
2013-12-27  9:28 Michal Gorny (mgorny)
2013-09-13 11:22 Michal Gorny (mgorny)
2013-05-22  5:10 Michal Gorny (mgorny)
2013-05-21 14:05 Michal Gorny (mgorny)
2013-05-15 19:01 Michal Gorny (mgorny)
2013-03-09 18:18 Michal Gorny (mgorny)
2013-03-09 17:55 Michal Gorny (mgorny)
2013-02-26 14:36 Michal Gorny (mgorny)
2013-02-10 11:42 Michal Gorny (mgorny)
2012-10-23 21:09 Michal Gorny (mgorny)
2012-10-11 16:52 Michal Gorny (mgorny)
2012-10-11 16:50 Michal Gorny (mgorny)
2012-09-27 17:12 Ian Stakenvicius (axs)
2012-08-29 13:42 Michal Gorny (mgorny)
2012-06-20  9:26 Michal Gorny (mgorny)
2012-06-14 23:07 Julian Ospald (hasufell)
2012-06-06 15:37 Michal Gorny (mgorny)
2012-06-05 17:40 Julian Ospald (hasufell)
2012-05-28 16:45 PaweA Hajdan (phajdan.jr)
2012-04-02 22:13 Pacho Ramos (pacho)
2012-03-01 22:10 Naohiro Aota (naota)
2012-02-26 13:20 Pacho Ramos (pacho)
2011-12-17  3:57 Maciej Mrozowski (reavertm)
2011-12-02 10:22 Brian Harring (ferringb)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130914190010.3E06E2004C@flycatcher.gentoo.org \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox