~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2009-12-10 17:16:19 UTC
  • mfrom: (4884 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4889.
  • Revision ID: john@arbash-meinel.com-20091210171619-ehdcxjbl8afhq9g1
Bring in bzr.dev 4884

Show diffs side-by-side

added added

removed removed

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