summaryrefslogtreecommitdiffstats
path: root/scripts/upload-error-report
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/upload-error-report')
-rwxr-xr-xscripts/upload-error-report26
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/upload-error-report b/scripts/upload-error-report
new file mode 100755
index 0000000..56bd24e
--- /dev/null
+++ b/scripts/upload-error-report
@@ -0,0 +1,26 @@
1#!/bin/bash
2
3ERR_REPORT_USERNAME=$1
4ERR_REPORT_EMAIL=$2
5BUILDDIR=$3
6
7shift
8shift
9shift
10
11if [ ! -e $BUILDDIR ]; then
12 exit 0
13fi
14
15cd $BUILDDIR/../poky
16
17if [ -d $BUILDDIR/tmp/log/error-report/ ]; then
18 echo "$ERR_REPORT_USERNAME" > ~/.oe-send-error
19 echo "$ERR_REPORT_EMAIL" >> ~/.oe-send-error
20
21 . ./oe-init-build-env $BUILDDIR
22
23 for x in `ls $BUILDDIR/tmp/log/error-report/ | grep error_report_`; do
24 send-error-report -y tmp/log/error-report/$x
25 done
26fi