scripts/showTuple.sh.in
changeset 1336 bc8b9381f637
child 2468 90595d1c1017
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scripts/showTuple.sh.in	Wed May 13 18:10:47 2009 +0000
     1.3 @@ -0,0 +1,30 @@
     1.4 +#!@@CT_bash@@
     1.5 +
     1.6 +# What we need:
     1.7 +#  - the .config file
     1.8 +
     1.9 +# Parse the tools' paths configuration
    1.10 +. "${CT_LIB_DIR}/paths.mk"
    1.11 +
    1.12 +# We'll need the stdout later, save it
    1.13 +exec 7>&1
    1.14 +
    1.15 +# Parse the common functions
    1.16 +. "${CT_LIB_DIR}/scripts/functions"
    1.17 +
    1.18 +# Don't care about any log file
    1.19 +exec >/dev/null
    1.20 +rm -f "${tmp_log_file}"
    1.21 +
    1.22 +# Parse the configuration file
    1.23 +. .config
    1.24 +
    1.25 +# Parse architecture and kernel specific functions
    1.26 +. "${CT_LIB_DIR}/scripts/build/arch/${CT_ARCH}.sh"
    1.27 +. "${CT_LIB_DIR}/scripts/build/kernel/${CT_KERNEL}.sh"
    1.28 +
    1.29 +# Build CT_TARGET
    1.30 +CT_DoBuildTargetTuple
    1.31 +
    1.32 +# All this for this single echo... :-( Sigh, I'll have to re-arrange things...
    1.33 +echo "${CT_TARGET}" >&7