From 585ce5b679406ffe8644b23e3a267d7af8e3a5de Mon Sep 17 00:00:00 2001 From: franck cuny Date: Thu, 23 Sep 2010 22:09:36 +0200 Subject: initial import --- scripts/builder.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 scripts/builder.sh (limited to 'scripts/builder.sh') diff --git a/scripts/builder.sh b/scripts/builder.sh new file mode 100755 index 0000000..01eb92e --- /dev/null +++ b/scripts/builder.sh @@ -0,0 +1,21 @@ +#!/bin/sh -e + +gitrepo=$1 +project=$2 +commit=$3 + +ORIGIN=$(pwd) +BUILDDIR=$(mktemp -d) +LOGDIR="/tmp/jitterbug" +mkdir -p $LOGDIR +logfile="$LOGDIR/$project.$commit.txt" +cd $BUILDDIR +rm -rf $project +git clone $gitrepo $project +cd $project +git checkout $commit +perl Makefile.PL +make +make test 2>&1 > $logfile +cd .. +rm -rf $BUILDDIR -- cgit v1.2.3