~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/packaging/update-changelogs.sh

  • Committer: Andrew Bennetts
  • Date: 2010-01-12 03:53:21 UTC
  • mfrom: (4948 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4964.
  • Revision ID: andrew.bennetts@canonical.com-20100112035321-hofpz5p10224ryj3
Merge lp:bzr, resolving conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
 
3
 
if [ "x$1" = "x" ]; then
 
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
 
 
10
if [ "x$VERSION" = "x" ]; then
4
11
    echo "Missing version"
5
12
    echo "You want something like:"
6
 
    echo "  update-changelogs.sh 1.6~rc1-1~bazaar1"
 
13
    echo "  VERSION=1.6~rc1-1~bazaar1 update-changelogs.sh"
7
14
    echo "or"
8
 
    echo "  update-changelogs.sh 1.6-1~bazaar1"
 
15
    echo "  VERSION=1.6-1~bazaar1 update-changelogs.sh"
9
16
    exit
10
17
fi
11
 
VERSION=$1
 
18
 
 
19
if [ -z "$1" ]; then
 
20
    MSG="New upstream release"
 
21
else
 
22
    MSG=$1
 
23
fi
12
24
 
13
25
for DISTRO in $UBUNTU_RELEASES; do
14
26
    PPAVERSION="$VERSION~${DISTRO}1"
15
27
    (
16
28
        echo "Updating changelog for $DISTRO"
17
 
        cd "packaging-$DISTRO" &&
18
 
        dch -v $PPAVERSION -D $DISTRO -c changelog 'New upstream release.' &&
19
 
        bzr commit -m "New upstream release: $PPAVERSION"
 
29
        cd "$PACKAGE-$DISTRO" &&
 
30
            dch -v $PPAVERSION -D $DISTRO -c changelog "$MSG." &&
 
31
            bzr commit -m "$MSG: $PPAVERSION"
20
32
    )
21
33
done