mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 22:16:58 +02:00
eclass/ninja-utils: Sync with Gentoo
It's from Gentoo commit 2fa125d055dcfebe34acf09ea04ff89c42eeb19b.
This commit is contained in:
parent
32ff0491d6
commit
750205c86f
@ -55,17 +55,7 @@ _NINJA_UTILS_ECLASS=1
|
|||||||
|
|
||||||
inherit multiprocessing
|
inherit multiprocessing
|
||||||
|
|
||||||
case "${NINJA}" in
|
NINJA_DEPEND="app-alternatives/ninja"
|
||||||
ninja)
|
|
||||||
NINJA_DEPEND=">=dev-util/ninja-1.8.2"
|
|
||||||
;;
|
|
||||||
samu)
|
|
||||||
NINJA_DEPEND="dev-util/samurai"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
NINJA_DEPEND=""
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# @FUNCTION: get_NINJAOPTS
|
# @FUNCTION: get_NINJAOPTS
|
||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
@ -84,7 +74,14 @@ get_NINJAOPTS() {
|
|||||||
# by the supplied arguments. This function dies if ninja fails. It
|
# by the supplied arguments. This function dies if ninja fails. It
|
||||||
# also supports being called via 'nonfatal'.
|
# also supports being called via 'nonfatal'.
|
||||||
eninja() {
|
eninja() {
|
||||||
[[ -n "${NINJA_DEPEND}" ]] || ewarn "Unknown value '${NINJA}' for \${NINJA}"
|
case "${NINJA}" in
|
||||||
|
ninja|samu)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
ewarn "Unknown value '${NINJA}' for \${NINJA}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
local v
|
local v
|
||||||
case "${NINJA_VERBOSE}" in
|
case "${NINJA_VERBOSE}" in
|
||||||
OFF) ;;
|
OFF) ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user