diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-11-28 17:51:39 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-11-28 17:51:39 +0000 |
commit | c101cbccac8e3555e136d6df1f50c6454e6e3628 (patch) | |
tree | c20e099047df29920381b00f6489d20758b1b7fc /scripts/functions | |
parent | 7029a674e3e02adf959d844031af3ee13c28f0f8 (diff) | |
download | crosstool-ng-c101cbccac8e3555e136d6df1f50c6454e6e3628.tar.gz crosstool-ng-c101cbccac8e3555e136d6df1f50c6454e6e3628.tar.bz2 crosstool-ng-c101cbccac8e3555e136d6df1f50c6454e6e3628.zip |
Make it easy to use \n
/trunk/scripts/functions | 5 4 1 0 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions index 75b2eafe..a96f245a 100644 --- a/scripts/functions +++ b/scripts/functions @@ -52,6 +52,9 @@ CT_LOG_LEVEL_EXTRA=3 CT_LOG_LEVEL_DEBUG=4 CT_LOG_LEVEL_ALL=5 +# Make it easy to use \n +CR=$(printf "\n") + # A function to log what is happening # Different log level are available: # - ERROR: A serious, fatal error occurred @@ -76,7 +79,7 @@ CT_DoLog() { cat - else echo "${@}" - fi |( IFS="\n" # We want the full lines, even leading spaces + fi |( IFS="${CR}" # We want the full lines, even leading spaces _prog_bar_cpt=0 _prog_bar[0]='/' _prog_bar[1]='-' |