scripts/build/companion_libs.sh
changeset 3115 1c68438f44f7
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scripts/build/companion_libs.sh	Fri Nov 16 14:59:27 2012 +0100
     1.3 @@ -0,0 +1,39 @@
     1.4 +# Wrapper to build the companion libs facilities
     1.5 +
     1.6 +# List all companion tools facilities, and parse their scripts
     1.7 +CT_COMP_LIBS_FACILITY_LIST=
     1.8 +for f in "${CT_LIB_DIR}/scripts/build/companion_libs/"*.sh; do
     1.9 +    _f="$(basename "${f}" .sh)"
    1.10 +    _f="${_f#???-}"
    1.11 +    . "${f}"
    1.12 +    CT_COMP_LIBS_FACILITY_LIST="${CT_COMP_LIBS_FACILITY_LIST} ${_f}"
    1.13 +done
    1.14 +
    1.15 +# Download the companion libs facilities
    1.16 +do_companion_libs_get() {
    1.17 +    for f in ${CT_COMP_LIBS_FACILITY_LIST}; do
    1.18 +        do_${f}_get
    1.19 +    done
    1.20 +}
    1.21 +
    1.22 +# Extract and patch the companion libs facilities
    1.23 +do_companion_libs_extract() {
    1.24 +    for f in ${CT_COMP_LIBS_FACILITY_LIST}; do
    1.25 +        do_${f}_extract
    1.26 +    done
    1.27 +}
    1.28 +
    1.29 +# Build the companion libs facilities for build
    1.30 +do_companion_libs_for_build() {
    1.31 +    for f in ${CT_COMP_LIBS_FACILITY_LIST}; do
    1.32 +        do_${f}_for_build
    1.33 +    done
    1.34 +}
    1.35 +
    1.36 +# Build the companion libs facilities for host
    1.37 +do_companion_libs_for_host() {
    1.38 +    for f in ${CT_COMP_LIBS_FACILITY_LIST}; do
    1.39 +        do_${f}_for_host
    1.40 +    done
    1.41 +}
    1.42 +