~bzr-pqm/bzr/bzr.dev

0.11.1 by Lukáš Lalinský
Initial import
1
#!/bin/bash
2
3
if [ "x$1" = "x" ]; then
4
    echo "Missing version"
3649.4.1 by John Arbash Meinel
Merge in Lukáš's helper scripts.
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"
0.11.1 by Lukáš Lalinský
Initial import
9
    exit
10
fi
11
VERSION=$1
12
3649.4.1 by John Arbash Meinel
Merge in Lukáš's helper scripts.
13
for DISTRO in $UBUNTU_RELEASES; do
14
    PPAVERSION="$VERSION~${DISTRO}1"
0.11.2 by Lukáš Lalinský
Automatically commit
15
    (
3649.4.1 by John Arbash Meinel
Merge in Lukáš's helper scripts.
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"
0.11.2 by Lukáš Lalinský
Automatically commit
20
    )
0.11.1 by Lukáš Lalinský
Initial import
21
done