~bzr-pqm/bzr/bzr.dev

3649.4.1 by John Arbash Meinel
Merge in Lukáš's helper scripts.
1
#!/bin/bash
2
# Helper for updating all of the packaging branches
3
4
if [ -z "$UBUNTU_RELEASES" ]; then
5
    echo "Configure the distro platforms that you want to"
6
    echo "build with a line like:"
4009.1.2 by Vincent Ladeuil
Fixed as per Matt, Jelmer and John reviews.
7
    echo '  export UBUNTU_RELEASES="dapper feisty gutsy hardy intrepid jaunty"'
3649.4.1 by John Arbash Meinel
Merge in Lukáš's helper scripts.
8
    exit 1
9
fi
10
11
for DISTRO in $UBUNTU_RELEASES; do
4380.1.1 by John Ferlito
Update packaging scripts to make deployment a bit easier
12
    if [ -d "$PACKAGE-$DISTRO" ] ; then
13
        echo "Updating $PACKAGE-$DISTRO"
14
        bzr update $PACKAGE-$DISTRO
15
        if [ "$PACKAGE" = "bzr-svn" ] ; then
16
            cd $PACKAGE-$DISTRO
4380.1.5 by John Ferlito
Fix another reference to bzr-svn/experimental
17
            bzr merge http://bzr.debian.org/pkg-bazaar/bzr-svn/unstable/
4380.1.1 by John Ferlito
Update packaging scripts to make deployment a bit easier
18
            cd ..
19
        fi
3649.4.1 by John Arbash Meinel
Merge in Lukáš's helper scripts.
20
    else
5390.1.1 by Max Bowsher
Update references to the PPA packaging branches to use the Launchpad package branch namespace.
21
        SRC="lp:~bzr/ubuntu/$DISTRO/$PACKAGE/bzr-ppa"
4380.1.1 by John Ferlito
Update packaging scripts to make deployment a bit easier
22
        echo "Checking out $SRC"
23
        bzr co $SRC $PACKAGE-$DISTRO
3649.4.1 by John Arbash Meinel
Merge in Lukáš's helper scripts.
24
    fi
25
done