/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: John Arbash Meinel
  • Date: 2006-04-25 15:05:42 UTC
  • mfrom: (1185.85.85 bzr-encoding)
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: john@arbash-meinel.com-20060425150542-c7b518dca9928691
[merge] the old bzr-encoding changes, reparenting them on bzr.dev

Show diffs side-by-side

added added

removed removed

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