cookutils rev 580 3.1.2

cook: loglimit can be disabled (thanks ernia)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 31 08:53:36 2013 +0100 (2013-01-31)
parents acbe3bd390d8
children 9f5cbf43a1f2
files cook cook.conf
line diff
     1.1 --- a/cook	Wed Jan 30 09:01:13 2013 +0100
     1.2 +++ b/cook	Thu Jan 31 08:53:36 2013 +0100
     1.3 @@ -894,7 +894,8 @@
     1.4  # Truncate stdout log file to $1 Mb. 
     1.5  loglimit()
     1.6  {
     1.7 -	tee /dev/stderr | dd bs=1024k count=${1:-50} conv=noerror 2> /dev/null
     1.8 +	[ -n "$DEFAULT_LOG_LIMIT" ] || return
     1.9 +	tee /dev/stderr | dd bs=1024k count=${1:-$DEFAULT_LOG_LIMIT} conv=noerror 2> /dev/null
    1.10  }
    1.11  
    1.12  #
     2.1 --- a/cook.conf	Wed Jan 30 09:01:13 2013 +0100
     2.2 +++ b/cook.conf	Thu Jan 31 08:53:36 2013 +0100
     2.3 @@ -99,3 +99,6 @@
     2.4  # Old way/tazwok compatibility.
     2.5  BUILD_HOST="$HOST_SYSTEM"
     2.6  SOURCES_REPOSITORY=$SRC
     2.7 +
     2.8 +# Maximum log size in MB per receipt function call (unset it to disable)
     2.9 +DEFAULT_LOG_LIMIT=50