~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: 2008-08-25 21:50:11 UTC
  • mfrom: (0.11.3 tools)
  • mto: This revision was merged to the branch mainline in revision 3659.
  • Revision ID: john@arbash-meinel.com-20080825215011-de9esmzgkue3e522
Merge in Lukáš's helper scripts.
Update the packaging documents to describe how to do the releases
using bzr-builddeb to package all distro platforms
simultaneously.

Show diffs side-by-side

added added

removed removed

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