~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Aaron Bentley
  • Date: 2008-11-23 16:38:39 UTC
  • mto: This revision was merged to the branch mainline in revision 3892.
  • Revision ID: aaron@aaronbentley.com-20081123163839-ew27m17130fz85v6
Update documentation

Show diffs side-by-side

added added

removed removed

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