~bzr-pqm/bzr/bzr.dev

4380.1.6 by John Ferlito
Fix missing bang from first line of script
1
#!/bin/bash
0.11.1 by Lukáš Lalinský
Initial import
2
4009.1.2 by Vincent Ladeuil
Fixed as per Matt, Jelmer and John reviews.
3
if [ -z "$UBUNTU_RELEASES" ]; then
4
    echo "Configure the distro platforms that you want to"
5
    echo "build with a line like:"
6
    echo '  export UBUNTU_RELEASES="dapper feisty gutsy hardy intrepid jaunty"'
7
    exit 1
8
fi
9
4380.1.1 by John Ferlito
Update packaging scripts to make deployment a bit easier
10
if [ "x$VERSION" = "x" ]; then
0.11.1 by Lukáš Lalinský
Initial import
11
    echo "Missing version"
3649.4.1 by John Arbash Meinel
Merge in Lukáš's helper scripts.
12
    echo "You want something like:"
4380.1.1 by John Ferlito
Update packaging scripts to make deployment a bit easier
13
    echo "  VERSION=1.6~rc1-1~bazaar1 update-changelogs.sh"
3649.4.1 by John Arbash Meinel
Merge in Lukáš's helper scripts.
14
    echo "or"
4380.1.1 by John Ferlito
Update packaging scripts to make deployment a bit easier
15
    echo "  VERSION=1.6-1~bazaar1 update-changelogs.sh"
0.11.1 by Lukáš Lalinský
Initial import
16
    exit
17
fi
4380.1.1 by John Ferlito
Update packaging scripts to make deployment a bit easier
18
19
if [ -z "$1" ]; then
20
    MSG="New upstream release"
21
else
22
    MSG=$1
23
fi
0.11.1 by Lukáš Lalinský
Initial import
24
3649.4.1 by John Arbash Meinel
Merge in Lukáš's helper scripts.
25
for DISTRO in $UBUNTU_RELEASES; do
26
    PPAVERSION="$VERSION~${DISTRO}1"
0.11.2 by Lukáš Lalinský
Automatically commit
27
    (
3649.4.1 by John Arbash Meinel
Merge in Lukáš's helper scripts.
28
        echo "Updating changelog for $DISTRO"
4380.1.1 by John Ferlito
Update packaging scripts to make deployment a bit easier
29
        cd "$PACKAGE-$DISTRO" &&
30
            dch -v $PPAVERSION -D $DISTRO -c changelog "$MSG." &&
31
            bzr commit -m "$MSG: $PPAVERSION"
0.11.2 by Lukáš Lalinský
Automatically commit
32
    )
0.11.1 by Lukáš Lalinský
Initial import
33
done