~bzr-pqm/bzr/bzr.dev

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