scons-utils.eclass: scons_clean_makeopts, mark internal
authorMichał Górny <mgorny@gentoo.org>
Fri, 1 Jan 2016 12:52:26 +0000 (13:52 +0100)
committerMichał Górny <mgorny@gentoo.org>
Fri, 8 Jan 2016 05:14:36 +0000 (06:14 +0100)
eclass/scons-utils.eclass
eclass/tests/scons-utils.sh

index b8051b04bf8123751f6addde3fa539f9574aebf2..e5e309be13c40151b116d4db0578136873de7080 100644 (file)
@@ -124,7 +124,7 @@ escons() {
        fi
 
        # if SCONSOPTS are _unset_, use cleaned MAKEOPTS
-       set -- scons ${SCONSOPTS-$(scons_clean_makeopts)} ${EXTRA_ESCONS} \
+       set -- scons ${SCONSOPTS-$(_scons_clean_makeopts)} ${EXTRA_ESCONS} \
                "${@}"
        echo "${@}" >&2
        "${@}"
@@ -145,14 +145,15 @@ escons() {
        return ${ret}
 }
 
-# @FUNCTION: scons_clean_makeopts
+# @FUNCTION: _scons_clean_makeopts
+# @INTERNAL
 # @USAGE: [makeflags] [...]
 # @DESCRIPTION:
 # Strip the supplied makeflags (or ${MAKEOPTS} if called without
 # an argument) of options not supported by SCons and make sure --jobs
 # gets an argument. Output the resulting flag list (suitable
 # for an assignment to SCONSOPTS).
-scons_clean_makeopts() {
+_scons_clean_makeopts() {
        local new_makeopts
 
        debug-print-function ${FUNCNAME} "${@}"
index 73871353c84ac6fca8d7d80b5c2cd15226257c5c..df8af7a7713c821aa230fca5f53143309e6e0e50 100755 (executable)
@@ -10,7 +10,7 @@ inherit scons-utils
 test-scons_clean_makeopts() {
        tbegin "scons_clean_makeopts() for ${1}"
 
-       local sconsopts=$(scons_clean_makeopts ${1}) ret=0
+       local sconsopts=$(_scons_clean_makeopts ${1}) ret=0
 
        if [[ ${sconsopts} != ${2-${1}} ]]; then
                eerror "Self-test failed:"