~bzr-pqm/bzr/bzr.dev

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# Helper for updating all of the packaging branches

if [ -z "$UBUNTU_RELEASES" ]; then
    echo "Configure the distro platforms that you want to"
    echo "build with a line like:"
    echo '  export UBUNTU_RELEASES="dapper feisty gutsy hardy intrepid jaunty"'
    exit 1
fi

for DISTRO in $UBUNTU_RELEASES; do
    if [ -d "$PACKAGE-$DISTRO" ] ; then
        echo "Updating $PACKAGE-$DISTRO"
        bzr update $PACKAGE-$DISTRO
        if [ "$PACKAGE" = "bzr-svn" ] ; then
            cd $PACKAGE-$DISTRO
            bzr merge http://bzr.debian.org/pkg-bazaar/bzr-svn/unstable/
            cd ..
        fi
    else
        SRC="lp:~bzr/ubuntu/$DISTRO/$PACKAGE/bzr-ppa"
        echo "Checking out $SRC"
        bzr co $SRC $PACKAGE-$DISTRO
    fi
done