Always perform update before build.
[git-tools-moved-to-github.git] / id-deb-build / pbuilderrc
1 # The distribution should be correct in your changelog file.
2 # Uncomment this line to use the one listed there:
3 # https://wiki.ubuntu.com/PbuilderHowto
4 #DIST=`dpkg-parsechangelog | awk '/^Distribution: / {print $2}'`
5
6 : ${DIST:=$(lsb_release --short --codename)}
7 : ${ARCH:=$(dpkg --print-architecture)}
8 NAME="$DIST-$ARCH"
9 DISTRIBUTION="$DIST"
10 DEBOOTSTRAPOPTS=("--arch" "$ARCH" "${DEBOOTSTRAPOPTS[@]}")
11 BASETGZ="`dirname $BASETGZ`/$NAME-base.tgz"
12 #BUILDRESULT="/var/cache/pbuilder/$NAME/result/"
13 BUILDRESULT="$NAME"
14 APTCACHE="/var/cache/pbuilder/$NAME/aptcache/"
15
16 # http://releases.ubuntu.com/releases/
17 case "$DIST" in
18     intrepid|hardy|gutsy) # ubuntu specific
19         MIRRORSITE="http://ftp.klid.dk/ftp/ubuntu/"
20         # MIRRORSITE="http://mirrors.kernel.org/ubuntu/"
21         COMPONENTS="main restricted universe multiverse"
22         OTHERMIRROR="deb http://ftp.indexdata.dk/ubuntu $DIST main"
23         ;;
24     lenny|etch) # debian specific
25         MIRRORSITE="http://ftp.se.debian.org/debian/"
26         COMPONENTS="main contrib non-free"
27         OTHERMIRROR="deb http://ftp.indexdata.dk/debian $DIST main"
28         ;;
29     *)
30         echo "Unknown distribution: $DIST"
31         exit 1
32         ;;
33 esac