mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-21 17:26:41 +00:00
Correctly handle the log level overide in scripts/saveSample.sh.
Little eye candy in scripts/showSamples.sh.
This commit is contained in:
parent
13b6242fb6
commit
af0f7c4d33
@ -13,11 +13,6 @@
|
|||||||
exec 6>&1
|
exec 6>&1
|
||||||
exec >/dev/null
|
exec >/dev/null
|
||||||
|
|
||||||
# Override log level
|
|
||||||
unset CT_LOG_ERROR CT_LOG_WARN CT_LOG_EXTRA CT_LOG_DEBUG
|
|
||||||
CT_LOG_INFO=y
|
|
||||||
CT_LOG_LEVEL_MAX="INFO"
|
|
||||||
|
|
||||||
# Parse the configuration file
|
# Parse the configuration file
|
||||||
CT_TestOrAbort "Configuration file not found. Please create one." -f "${CT_TOP_DIR}/.config"
|
CT_TestOrAbort "Configuration file not found. Please create one." -f "${CT_TOP_DIR}/.config"
|
||||||
. "${CT_TOP_DIR}/.config"
|
. "${CT_TOP_DIR}/.config"
|
||||||
@ -29,6 +24,11 @@ CT_DoBuildTargetTriplet
|
|||||||
# re-parse them:
|
# re-parse them:
|
||||||
. "${CT_TOP_DIR}/.config"
|
. "${CT_TOP_DIR}/.config"
|
||||||
|
|
||||||
|
# Override log level
|
||||||
|
unset CT_LOG_ERROR CT_LOG_WARN CT_LOG_EXTRA CT_LOG_DEBUG
|
||||||
|
CT_LOG_INFO=y
|
||||||
|
CT_LOG_LEVEL_MAX="INFO"
|
||||||
|
|
||||||
# Create the sample directory
|
# Create the sample directory
|
||||||
# In case it was manually made, add it to svn
|
# In case it was manually made, add it to svn
|
||||||
if [ -d "${CT_TOP_DIR}/samples/${CT_TARGET}" ]; then
|
if [ -d "${CT_TOP_DIR}/samples/${CT_TARGET}" ]; then
|
||||||
|
@ -14,8 +14,8 @@ dump_single_sample() {
|
|||||||
printf " %-*s" ${width} "${sample}"
|
printf " %-*s" ${width} "${sample}"
|
||||||
[ -f "${CT_TOP_DIR}/samples/${sample}/broken" ] && printf " (broken)"
|
[ -f "${CT_TOP_DIR}/samples/${sample}/broken" ] && printf " (broken)"
|
||||||
echo
|
echo
|
||||||
echo " | ${CT_KERNEL}-${CT_KERNEL_VERSION} binutils-${CT_BINUTILS_VERSION}"
|
echo " \ ${CT_KERNEL}-${CT_KERNEL_VERSION} binutils-${CT_BINUTILS_VERSION}"
|
||||||
echo " \ ${CT_CC}-${CT_CC_VERSION} ${CT_LIBC}-${CT_LIBC_VERSION}"
|
echo " \_ ${CT_CC}-${CT_CC_VERSION} ${CT_LIBC}-${CT_LIBC_VERSION}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get largest sample width
|
# Get largest sample width
|
||||||
|
Loading…
x
Reference in New Issue
Block a user