Yann@3115: # Wrapper to build the companion libs facilities Yann@3115: Yann@3115: # List all companion tools facilities, and parse their scripts Yann@3115: CT_COMP_LIBS_FACILITY_LIST= Yann@3115: for f in "${CT_LIB_DIR}/scripts/build/companion_libs/"*.sh; do Yann@3115: _f="$(basename "${f}" .sh)" Yann@3115: _f="${_f#???-}" Yann@3115: . "${f}" Yann@3115: CT_COMP_LIBS_FACILITY_LIST="${CT_COMP_LIBS_FACILITY_LIST} ${_f}" Yann@3115: done Yann@3115: Yann@3115: # Download the companion libs facilities Yann@3115: do_companion_libs_get() { Yann@3115: for f in ${CT_COMP_LIBS_FACILITY_LIST}; do Yann@3115: do_${f}_get Yann@3115: done Yann@3115: } Yann@3115: Yann@3115: # Extract and patch the companion libs facilities Yann@3115: do_companion_libs_extract() { Yann@3115: for f in ${CT_COMP_LIBS_FACILITY_LIST}; do Yann@3115: do_${f}_extract Yann@3115: done Yann@3115: } Yann@3115: Yann@3115: # Build the companion libs facilities for build Yann@3115: do_companion_libs_for_build() { Yann@3115: for f in ${CT_COMP_LIBS_FACILITY_LIST}; do Yann@3115: do_${f}_for_build Yann@3115: done Yann@3115: } Yann@3115: Yann@3115: # Build the companion libs facilities for host Yann@3115: do_companion_libs_for_host() { Yann@3115: for f in ${CT_COMP_LIBS_FACILITY_LIST}; do Yann@3115: do_${f}_for_host Yann@3115: done Yann@3115: } Yann@3115: