| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2011 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/scons-utils.eclass,v 1.9 2011/11/18 20:51:10 mgorny Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/scons-utils.eclass,v 1.10 2011/12/13 18:37:25 mgorny Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: scons-utils.eclass |
5 | # @ECLASS: scons-utils.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # mgorny@gentoo.org |
7 | # mgorny@gentoo.org |
| 8 | # @BLURB: helper functions to deal with SCons buildsystem |
8 | # @BLURB: helper functions to deal with SCons buildsystem |
| … | |
… | |
| 103 | "${myesconsargs[@]}" "${@}" |
103 | "${myesconsargs[@]}" "${@}" |
| 104 | echo "${@}" >&2 |
104 | echo "${@}" >&2 |
| 105 | "${@}" |
105 | "${@}" |
| 106 | ret=${?} |
106 | ret=${?} |
| 107 | |
107 | |
| 108 | [[ ${ret} -ne 0 && ${EAPI:-0} -ge 4 ]] && die "escons failed." |
108 | [[ ${ret} -ne 0 && ${EAPI} == 4 ]] && die "escons failed." |
| 109 | return ${ret} |
109 | return ${ret} |
| 110 | } |
110 | } |
| 111 | |
111 | |
| 112 | # @FUNCTION: scons_clean_makeopts |
112 | # @FUNCTION: scons_clean_makeopts |
| 113 | # @USAGE: [makeflags] [...] |
113 | # @USAGE: [makeflags] [...] |