1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/scripts/build/companion_tools.sh Mon Nov 19 15:20:13 2012 -0800
1.3 @@ -0,0 +1,38 @@
1.4 +# Wrapper to build the companion tools facilities
1.5 +
1.6 +# List all companion tools facilities, and parse their scripts
1.7 +CT_COMP_TOOLS_FACILITY_LIST=
1.8 +for f in "${CT_LIB_DIR}/scripts/build/companion_tools/"*.sh; do
1.9 + _f="$(basename "${f}" .sh)"
1.10 + _f="${_f#???-}"
1.11 + __f="CT_COMP_TOOLS_${_f}"
1.12 + if [ "${!__f}" = "y" ]; then
1.13 + CT_DoLog DEBUG "Enabling companion tools '${_f}'"
1.14 + . "${f}"
1.15 + CT_COMP_TOOLS_FACILITY_LIST="${CT_COMP_TOOLS_FACILITY_LIST} ${_f}"
1.16 + else
1.17 + CT_DoLog DEBUG "Disabling companion tools '${_f}'"
1.18 + fi
1.19 +done
1.20 +
1.21 +# Download the companion tools facilities
1.22 +do_companion_tools_get() {
1.23 + for f in ${CT_COMP_TOOLS_FACILITY_LIST}; do
1.24 + do_companion_tools_${f}_get
1.25 + done
1.26 +}
1.27 +
1.28 +# Extract and patch the companion tools facilities
1.29 +do_companion_tools_extract() {
1.30 + for f in ${CT_COMP_TOOLS_FACILITY_LIST}; do
1.31 + do_companion_tools_${f}_extract
1.32 + done
1.33 +}
1.34 +
1.35 +# Build the companion tools facilities
1.36 +do_companion_tools() {
1.37 + for f in ${CT_COMP_TOOLS_FACILITY_LIST}; do
1.38 + do_companion_tools_${f}_build
1.39 + done
1.40 +}
1.41 +