reportbug wrapper and template file for filing alignment bugs
[buildd-scripts.git] / bug-script
1 #!/bin/bash
2
3 LOGFILE=$1
4 LOGFILE=$(basename $LOGFILE)
5 PKG_VER_ARCH=$(basename $LOGFILE .log)
6
7 PKG=$(echo $PKG_VER_ARCH | cut -d _ -f1)
8 VER=$(echo $PKG_VER_ARCH | cut -d _ -f2)
9 ARCH=$(echo $PKG_VER_ARCH | cut -d _ -f3)
10
11 TEMPLATE=/scratch/rebuild/buildd-scripts/template.txt
12
13 URL="https://www.einval.com/debian/arm/rebuild-logs/$ARCH/FAIL/$LOGFILE"
14
15 echo "Build log at $URL"
16
17 TMPL=$(tempfile)
18
19 cat $TEMPLATE | sed "s,LOG_URL,$URL," > $TMPL
20
21 reportbug -b -c -I --no-check-available \
22           --no-debconf --no-bug-script --no-query-bts \
23           -i $TMPL \
24           -P "User: debian-arm@lists.debian.org" \
25           -P "Usertags: alignment" \
26           -S important \
27           -T none \
28           --no-cc-menu \
29           -s "${PKG} ${VER}: FTBFS, alignment problem" \
30           --src --from-buildd=${PKG}_${VER}
31
32 # Debug
33 #         -d \
34
35
36 rm -vf $TMPL