aboutsummaryrefslogtreecommitdiffstats
path: root/rebuild-alpine.sh
diff options
context:
space:
mode:
authorAndrew Manison <amanison@anselsystems.com>2011-12-26 23:47:24 +0000
committerAndrew Manison <amanison@anselsystems.com>2011-12-26 23:48:04 +0000
commitb9050dd98ce58306e7a7cde98f19483408ede0ff (patch)
tree25cf52857c8e1a549af1ff2952ff1bc89a17936e /rebuild-alpine.sh
parent16ba622102626a1a16320ff20ebe586a8369056c (diff)
downloadaports-b9050dd98ce58306e7a7cde98f19483408ede0ff.tar.bz2
aports-b9050dd98ce58306e7a7cde98f19483408ede0ff.tar.xz
rebuild-alpine.sh: Fixed address for emails to developer list.
Diffstat (limited to 'rebuild-alpine.sh')
-rwxr-xr-xrebuild-alpine.sh38
1 files changed, 18 insertions, 20 deletions
diff --git a/rebuild-alpine.sh b/rebuild-alpine.sh
index 4e4a85169b..0b79eeb9df 100755
--- a/rebuild-alpine.sh
+++ b/rebuild-alpine.sh
@@ -56,30 +56,27 @@ build () {
if [ -n "$mail" ] ; then
maintainer=$(grep Maintainer APKBUILD | cut -d " " -f 3- | sed 's/.*< *//;s/ *>.*//;' )
if [ -n "$maintainer" ] ; then
- recipients="$maintainer -cc alpine-devel@lists.alpinelinux.org"
+ recipients="$maintainer,alpine-devel@lists.alpinelinux.org"
else
recipients="alpine-devel@lists.alpinelinux.org"
fi
- if [ -n "$mail" ] ; then
- echo "sending mail to [$recipients]"
- if [ $(wc -l $rootdir/$1_$p.txt | cut -f 1 -d ' ') -gt 400 ]; then
- TMPFILE="$(mktemp $1_$p.XXXXXX).txt" || exit 1
- head -n 200 $rootdir/$1_$p.txt >> $TMPFILE
- echo "-------" >> $TMPFILE
- echo "snip..." >> $TMPFILE
- echo "-------" >> $TMPFILE
- tail -n 200 $rootdir/$1_$p.txt >> $TMPFILE
- BUILDLOG="$TMPFILE"
- else
- BUILDLOG="$rootdir/$1_$p.txt"
- fi
+ echo "$1/$p: sending mail to [$recipients]" >> $rootdir/mail.lst
+ if [ $(wc -l $rootdir/$1_$p.txt | cut -f 1 -d ' ') -gt 400 ]; then
+ TMPFILE="$(mktemp $1_$p.XXXXXX).txt" || exit 1
+ head -n 200 $rootdir/$1_$p.txt >> $TMPFILE
+ echo "-------" >> $TMPFILE
+ echo "snip..." >> $TMPFILE
+ echo "-------" >> $TMPFILE
+ tail -n 200 $rootdir/$1_$p.txt >> $TMPFILE
+ BUILDLOG="$TMPFILE"
+ else
+ BUILDLOG="$rootdir/$1_$p.txt"
+ fi
- echo "Package $1/$p failed to build. Build output is attached" | \
- email -s "NOT SPAM $p build report" -a $BUILDLOG \
- -n AlpineBuildBot -f buildbot@alpinelinux.org $recipients
- if [ "$BUILDLOG" = "$TMPFILE" ]; then
- rm $BUILDLOG
- fi
+ echo "Package $1/$p failed to build. Build output is attached" | \
+ email -s "NOT SPAM $p build report" -n "AlpineBuildBot" -f "buildbot@alpinelinux.org" -a "$BUILDLOG" "$recipients"
+ if [ "$BUILDLOG" = "$TMPFILE" ]; then
+ rm $BUILDLOG
fi
fi
failed=$(expr "$failed" + 1)
@@ -97,6 +94,7 @@ build () {
}
touch START_OF_BUILD.txt
+rm -f mail.lst
unset clean
unset mail