#!/bin/bash LOGFILE=$1 LOGFILE=$(basename $LOGFILE) PKG_VER_ARCH=$(basename $LOGFILE .log) PKG=$(echo $PKG_VER_ARCH | cut -d _ -f1) VER=$(echo $PKG_VER_ARCH | cut -d _ -f2) ARCH=$(echo $PKG_VER_ARCH | cut -d _ -f3) TEMPLATE=/scratch/rebuild/buildd-scripts/template.txt URL="https://www.einval.com/debian/arm/rebuild-logs/$ARCH/FAIL/$LOGFILE" echo "Build log at $URL" TMPL=$(tempfile) cat $TEMPLATE | sed "s,LOG_URL,$URL," > $TMPL reportbug -b -c -I --no-check-available \ --no-debconf --no-bug-script --no-query-bts \ -i $TMPL \ -P "User: debian-arm@lists.debian.org" \ -P "Usertags: alignment" \ -S important \ -T none \ --no-cc-menu \ -s "${PKG} ${VER}: FTBFS, alignment problem" \ --src --from-buildd=${PKG}_${VER} # Debug # -d \ rm -vf $TMPL