From 42fe84cd155a0883099780c268c201af1e1435e1 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Thu, 20 Nov 2008 17:48:10 +0000 Subject: Overide locale to C so as to have readable logs. Offer a DEBUG & EXPERIMENTAL setting to not overide locale. /trunk/scripts/crosstool.sh | 10 7 3 0 +++++++--- /trunk/config/global/ct-behave.in | 17 17 0 0 +++++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) --- scripts/crosstool.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/crosstool.sh b/scripts/crosstool.sh index 40dd01cb..df47fa88 100755 --- a/scripts/crosstool.sh +++ b/scripts/crosstool.sh @@ -20,13 +20,17 @@ # - initialise logging. . "${CT_LIB_DIR}/scripts/functions" -CT_STAR_DATE=$(CT_DoDate +%s%N) -CT_STAR_DATE_HUMAN=$(CT_DoDate +%Y%m%d.%H%M%S) - # Parse the configuration file # It has some info about the logging facility, so include it early . .config +# Overide the locale early, in case we ever translate crosstool-NG messages +[ -z "${CT_NO_OVERIDE_LC_MESSAGES}" ] && export LC_ALL=C + +# Start date. Can't be done until we know the locale +CT_STAR_DATE=$(CT_DoDate +%s%N) +CT_STAR_DATE_HUMAN=$(CT_DoDate +%Y%m%d.%H%M%S) + # Yes! We can do full logging from now on! CT_DoLog INFO "Build started ${CT_STAR_DATE_HUMAN}" -- cgit v1.2.3