From 914758376bc88e2d325854bfdf1d52efe2eaf182 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 6 Nov 2008 15:30:08 +0100 Subject: [PATCH] Added a script to build on our supported dists. --- id-deb-build/id-pbuild-all.sh | 16 ++++++++++++++++ id-deb-build/pbuilderrc | 29 +++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100755 id-deb-build/id-pbuild-all.sh create mode 100644 id-deb-build/pbuilderrc diff --git a/id-deb-build/id-pbuild-all.sh b/id-deb-build/id-pbuild-all.sh new file mode 100755 index 0000000..b1db5a9 --- /dev/null +++ b/id-deb-build/id-pbuild-all.sh @@ -0,0 +1,16 @@ +#!/bin/sh +PKG="$1" +if test -z "$PKG"; then + echo "Specify .dsc file" + exit 1 +fi +if test ! -e "$PKG"; then + echo "${PKG} does not exist" + exit 1 +fi +for dist in etch lenny; do + for arch in i386 amd64; do + DIST=$dist ARCH=$arch pbuilder update --override-config + DIST=$dist ARCH=$arch pbuilder --build $PKG + done +done diff --git a/id-deb-build/pbuilderrc b/id-deb-build/pbuilderrc new file mode 100644 index 0000000..7365382 --- /dev/null +++ b/id-deb-build/pbuilderrc @@ -0,0 +1,29 @@ +# The distribution should be correct in your changelog file. +# Uncomment this line to use the one listed there: +# https://wiki.ubuntu.com/PbuilderHowto +#DIST=`dpkg-parsechangelog | awk '/^Distribution: / {print $2}'` + +: ${DIST:=$(lsb_release --short --codename)} +: ${ARCH:=$(dpkg --print-architecture)} +NAME="$DIST-$ARCH" +DISTRIBUTION="$DIST" +DEBOOTSTRAPOPTS=("--arch" "$ARCH" "${DEBOOTSTRAPOPTS[@]}") +BASETGZ="`dirname $BASETGZ`/$NAME-base.tgz" +BUILDRESULT="/var/cache/pbuilder/$NAME/result/" +APTCACHE="/var/cache/pbuilder/$NAME/aptcache/" + +case "$DIST" in + intrepid|hardy|gutsy) # ubuntu specific + MIRRORSITE="http://mirrors.kernel.org/ubuntu/" + COMPONENTS="main restricted universe multiverse" + ;; + lenny|etch) # debian specific + MIRRORSITE="http://ftp.se.debian.org/debian/" + COMPONENTS="main contrib non-free" + OTHERMIRROR="deb http://ftp.indexdata.dk/debian $DIST main" + ;; + *) + echo "Unknown distribution: $DIST" + exit 1 + ;; +esac -- 1.7.10.4