index : devops | |
Archlinux32 devs' convenience-scripts | gitolite user |
summaryrefslogtreecommitdiff |
-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' |