mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-23 22:52:23 +00:00
e89072b5a5
- in a directory containing a crosstool-NG configuration, prints the tuple of the configured target to stdout. -------- diffstat follows -------- /trunk/Makefile.in | 4 3 1 0 +++- /trunk/scripts/showTuple.sh.in | 30 30 0 0 ++++++++++++++++++++++++++++++ /trunk/ct-ng.comp | 2 1 1 0 +- /trunk/ct-ng.in | 10 9 1 0 +++++++++- 4 files changed, 43 insertions(+), 3 deletions(-)
31 lines
654 B
Bash
31 lines
654 B
Bash
#!@@CT_bash@@
|
|
|
|
# What we need:
|
|
# - the .config file
|
|
|
|
# Parse the tools' paths configuration
|
|
. "${CT_LIB_DIR}/paths.mk"
|
|
|
|
# We'll need the stdout later, save it
|
|
exec 7>&1
|
|
|
|
# Parse the common functions
|
|
. "${CT_LIB_DIR}/scripts/functions"
|
|
|
|
# Don't care about any log file
|
|
exec >/dev/null
|
|
rm -f "${tmp_log_file}"
|
|
|
|
# Parse the configuration file
|
|
. .config
|
|
|
|
# Parse architecture and kernel specific functions
|
|
. "${CT_LIB_DIR}/scripts/build/arch/${CT_ARCH}.sh"
|
|
. "${CT_LIB_DIR}/scripts/build/kernel/${CT_KERNEL}.sh"
|
|
|
|
# Build CT_TARGET
|
|
CT_DoBuildTargetTuple
|
|
|
|
# All this for this single echo... :-( Sigh, I'll have to re-arrange things...
|
|
echo "${CT_TARGET}" >&7
|