Paul Tagliamonte Code Dump

git-fluxbox-nightly

#!/bin/bash

if [ "x$1" != "x" ]; then
DIST=$1
else
DIST="natty"
fi

BLD_ID=`date +%s`

WORK_DIR="/tmp/autobuild/$BLD_ID"
echo "WORKDIR: $WORK_DIR"

OLD_FOLD=`pwd`

FBX_ROOT="git://git.fluxbox.org/fluxbox.git"

EMAIL="ga.tluap.nortatem|soluod#ga.tluap.nortatem|soluod"
export DEBFULLNAME="Paul's Doulos"
export DEBEMAIL="$EMAIL"
GPG_KEY="70DB41EB"

mkdir -p $WORK_DIR
cd $WORK_DIR

D_FLDR="fluxbox"
F_FLDR=`basename $FBX_ROOT .git`

git clone $FBX_ROOT
VID=‘cat $F_FLDR/configure.in | grep AM_INIT_AUTOMAKE | tr -d " " | tr "," " " | awk ’{print $2}'`
FULL_ID="$VID+nightly$BLD_ID"

mv $F_FLDR $F_FLDR-$FULL_ID

tar -zcvf `echo $F_FLDR`_`echo $FULL_ID`.orig.tar.gz $F_FLDR-$FULL_ID —exclude=.git —exclude=.gitignore

cd $F_FLDR-$FULL_ID
cp $OLD_FOLD/$D_FLDR/debian ./ -r

echo | dch —distribution $DIST —newversion $FULL_ID-1 -b -m "Autobuild."

dpkg-buildpackage -S -d -k$GPG_KEY

if [ "x$2" == "xupload" ]; then
cd ..
dput ppa:fluxbox-maintainers/nightly `echo $F_FLDR`_`echo $FULL_ID`-1_source.changes
fi

run-upload

#!/bin/bash
CWDS=`dirname $0`
cd $CWDS
CWDS=`pwd`

REPORT_DIR="weather"

./cleanbuilds > ./$REPORT_DIR/cleanbuild.report.txt
GITSPEW=‘./git-fluxbox-nightly natty upload`
echo $GITSPEW > ./$REPORT_DIR/gitbuild.report.txt
WD=`echo $GITSPEW | grep "^WORKDIR: " | awk ’{print $2}'`
cd $WD
lintian -iIE —pedantic `ls *.changes` > $CWDS/$REPORT_DIR/lintian.report.txt