~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2008-01-21 14:49:18 UTC
  • mto: (3198.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 3199.
  • Revision ID: v.ladeuil+lp@free.fr-20080121144918-xx5wtw3ddfm0iauh
Relax constraint on test ids, simplify implementation and update tests.

* bzrlib/tests/test_selftest.py:
(TestSelftestFiltering.test_condition_id_in_list,
TestSelftestFiltering.test_filter_suite_by_id_list): Updated.
(TestTestIdList): Renamed from TestTestIdListFilter and updated.

* bzrlib/tests/__init__.py:
(TestIdList): Relax the constraint on test ids, they just have to
start with their module name.

* bzrlib/doc/api/__init__.py:
(test_suite): Adding module name in test id is now enough.

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