scripts/build/debug.sh
changeset 96 aa1a9fbd6eb8
child 182 223c84ec2d90
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scripts/build/debug.sh	Thu May 17 16:22:51 2007 +0000
     1.3 @@ -0,0 +1,34 @@
     1.4 +# Wrapper to build the debug facilities
     1.5 +
     1.6 +# List all debug facilities, and parse their scripts
     1.7 +CT_DEBUG_FACILITY_LIST=
     1.8 +for f in "${CT_TOP_DIR}/scripts/build/debug/"*.sh; do
     1.9 +    is_enabled=
    1.10 +    . "${f}"
    1.11 +    f=`basename "${f}" .sh`
    1.12 +    if [ "${is_enabled}" = "y" ]; then
    1.13 +        CT_DEBUG_FACILITY_LIST="${CT_DEBUG_FACILITY_LIST} ${f}"
    1.14 +    fi
    1.15 +done
    1.16 +
    1.17 +# Download the debug facilities
    1.18 +do_debug_get() {
    1.19 +    for f in ${CT_DEBUG_FACILITY_LIST}; do
    1.20 +        do_debug_${f}_get
    1.21 +    done
    1.22 +}
    1.23 +
    1.24 +# Extract and patch the debug facilities
    1.25 +do_debug_extract() {
    1.26 +    for f in ${CT_DEBUG_FACILITY_LIST}; do
    1.27 +        do_debug_${f}_extract
    1.28 +    done
    1.29 +}
    1.30 +
    1.31 +# Build the debug facilities
    1.32 +do_debug() {
    1.33 +    for f in ${CT_DEBUG_FACILITY_LIST}; do
    1.34 +        do_debug_${f}_build
    1.35 +    done
    1.36 +}
    1.37 +