~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: aaron.bentley at utoronto
  • Date: 2005-08-27 04:42:41 UTC
  • mfrom: (1092.1.43)
  • mto: (1185.3.4)
  • mto: This revision was merged to the branch mainline in revision 1178.
  • Revision ID: aaron.bentley@utoronto.ca-20050827044241-23d676133b9fc981
Merge of robertc@robertcollins.net-20050826013321-52eee1f1da679ee9

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
if [ "x$1" = "x" ]; then
4
 
    echo "Missing version"
5
 
    echo "You want something like:"
6
 
    echo "  update-changelogs.sh 1.6~rc1-1~bazaar1"
7
 
    echo "or"
8
 
    echo "  update-changelogs.sh 1.6-1~bazaar1"
9
 
    exit
10
 
fi
11
 
VERSION=$1
12
 
 
13
 
for DISTRO in $UBUNTU_RELEASES; do
14
 
    PPAVERSION="$VERSION~${DISTRO}1"
15
 
    (
16
 
        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"
20
 
    )
21
 
done