Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | ERR_REPORT_USERNAME=$1 |
| 4 | ERR_REPORT_EMAIL=$2 |
| 5 | BUILDDIR=$3 |
| 6 | |
| 7 | shift |
| 8 | shift |
| 9 | shift |
| 10 | |
| 11 | if [ ! -e $BUILDDIR ]; then |
| 12 | exit 0 |
| 13 | fi |
| 14 | |
| 15 | cd $BUILDDIR/../poky |
| 16 | |
| 17 | if [ -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 |
| 26 | fi |