diff options
| author | Armin Kuster <akuster808@gmail.com> | 2020-08-28 12:50:22 -0700 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2020-08-29 07:25:35 -0700 |
| commit | 613da4ff35f2e0dcbf150d4ff22c88fcfca91ece (patch) | |
| tree | 09f9657b28b4f8ca0771e38a7dfb1bae3cf0274a | |
| parent | 5efa53b2b2bab6f2d8589624c1700d1e66f29683 (diff) | |
| download | meta-security-613da4ff35f2e0dcbf150d4ff22c88fcfca91ece.tar.gz | |
upload-error-report: add script to upload errors
Signed-off-by: Armin Kuster <akuster808@gmail.com>
| -rwxr-xr-x | scripts/upload-error-report | 26 |
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 | |||
| 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 | ||
