index : devops | |
Archlinux32 devs' convenience-scripts | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-04-17 10:07:21 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-04-17 10:07:21 +0200 |
commit | ea435216927cfd1cb2ee0eda77768f47808791c0 (patch) | |
tree | c09808eb3afaf9a0d0a6b0ebc0648babe8339893 | |
parent | ed1e0d402aa0792a1e7870d9050db22b3460f136 (diff) |
-rwxr-xr-x | generate-bug-report | 13 |
diff --git a/generate-bug-report b/generate-bug-report index e599352..7a19bcc 100755 --- a/generate-bug-report +++ b/generate-bug-report @@ -27,6 +27,7 @@ if ! makepkg_info=$(makepkg --verifysource 2>&1); then makepkg --verifysource 2>&1 ) fail_command='makepkg --verifysource' + title='source error' else >&2 echo 'Nothing wrong with upstream'"'"'s source - should I try to build? (empty="yes")' read -r s @@ -50,6 +51,7 @@ else >&2 echo 'Builds fine on x86_64.' exit fi + title='fails to build in clean chroot' bug_report='extra-x86_64-build fails with:' fail_command='extra-x86_64-build' log='full log is attached' @@ -57,6 +59,17 @@ else fi printf 'Bug report:\n\n' +printf 'Title: [%s] %s\n' \ + "$( + basename "$( + dirname "$( + dirname "$( + pwd + )" + )" + )" + )" \ + "${title}" printf 'Description:\n\n' printf '%s\n' "${bug_report}" printf 'Additional info:\n' |