diff options
| author | Andrew Manison <amanison@anselsystems.com> | 2011-02-21 17:50:47 +0000 |
|---|---|---|
| committer | Andrew Manison <amanison@anselsystems.com> | 2011-02-21 17:50:47 +0000 |
| commit | e433d9ca3301d9d2a11d7f3fcfb3bf7bb2617683 (patch) | |
| tree | 149b944b292ea5a4ed384c6e6aaefa520c642cf8 | |
| parent | 09d322b4331b208573dbb514f025e129a8806545 (diff) | |
| download | aports-e433d9ca3301d9d2a11d7f3fcfb3bf7bb2617683.tar.bz2 aports-e433d9ca3301d9d2a11d7f3fcfb3bf7bb2617683.tar.xz | |
./rebuild_alpine: Increased number of lines included in emailed version of log to 400, 200 head lines and 200 tail lines, to capture all packages added and purged for build.
| -rwxr-xr-x | rebuild-alpine.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rebuild-alpine.sh b/rebuild-alpine.sh index a9618b1fe4..a9a7888b1b 100755 --- a/rebuild-alpine.sh +++ b/rebuild-alpine.sh @@ -45,13 +45,13 @@ build () { fi if [ -n "$mail" ] ; then echo "sending mail to [$recipients]" - if [ $(wc -l $rootdir/$1_$p.txt | cut -f 1 -d ' ') -gt 200 ]; then + if [ $(wc -l $rootdir/$1_$p.txt | cut -f 1 -d ' ') -gt 400 ]; then TMPFILE='mktemp' || exit 1 - head -n 100 $rootdir/$1_$p.txt >> $TMPFILE + head -n 200 $rootdir/$1_$p.txt >> $TMPFILE echo "-------" >> $TMPFILE echo "snip..." >> $TMPFILE echo "-------" >> $TMPFILE - tail -n 100 $rootdir/$1_$p.txt >> $TMPFILE + tail -n 200 $rootdir/$1_$p.txt >> $TMPFILE BUILDLOG="$TMPFILE" else BUILDLOG="$rootdir/$1_$p.txt" |
