/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Matthew Fuller
  • Date: 2009-07-25 15:21:25 UTC
  • mto: (4772.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4773.
  • Revision ID: fullermd@over-yonder.net-20090725152125-2mzil0setr85g0no
Adjust documentation in the user guide a bit to correspond to DWIM
revspecs.

This is untested, as I don't have the tools to build the docs.  It's
also really not as clean as it could be, and there are probably much
better ways to put this info in here.  But it's something.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
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$1" = "x" ]; then
 
11
    echo "Missing version"
 
12
    echo "You want something like:"
 
13
    echo "  update-changelogs.sh 1.6~rc1-1~bazaar1"
 
14
    echo "or"
 
15
    echo "  update-changelogs.sh 1.6-1~bazaar1"
 
16
    exit
 
17
fi
 
18
VERSION=$1
 
19
 
 
20
for DISTRO in $UBUNTU_RELEASES; do
 
21
    PPAVERSION="$VERSION~${DISTRO}1"
 
22
    (
 
23
        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"
 
27
    )
 
28
done