aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/upload-error-report
blob: 56bd24e47f1f0e7aa0398125e2b71b1deff9b1e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

ERR_REPORT_USERNAME=$1
ERR_REPORT_EMAIL=$2
BUILDDIR=$3

shift
shift
shift

if [ ! -e $BUILDDIR ]; then
    exit 0
fi

cd $BUILDDIR/../poky

if [ -d $BUILDDIR/tmp/log/error-report/ ]; then
    echo "$ERR_REPORT_USERNAME" > ~/.oe-send-error
    echo "$ERR_REPORT_EMAIL" >> ~/.oe-send-error

    . ./oe-init-build-env $BUILDDIR

    for x in `ls $BUILDDIR/tmp/log/error-report/ | grep error_report_`; do
        send-error-report -y tmp/log/error-report/$x
    done
fi