/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: Joe Julian
  • Date: 2010-01-10 02:25:31 UTC
  • mto: (4634.119.7 2.0)
  • mto: This revision was merged to the branch mainline in revision 4959.
  • Revision ID: joe@julianfamily.org-20100110022531-wqk61rsagz8xsiga
Added MANIFEST.in to allow bdist_rpm to have all the required include files and tools. bdist_rpm will still fail to build correctly on some distributions due to a disttools bug http://bugs.python.org/issue644744

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
 
# Helper to insert a new entry in debian/changelog
3
2
 
4
3
if [ -z "$UBUNTU_RELEASES" ]; then
5
4
    echo "Configure the distro platforms that you want to"
8
7
    exit 1
9
8
fi
10
9
 
11
 
if [ "x$VERSION" = "x" ]; then
 
10
if [ "x$1" = "x" ]; then
12
11
    echo "Missing version"
13
12
    echo "You want something like:"
14
 
    echo "  VERSION=1.6~rc1-1~bazaar1 update-changelogs.sh"
 
13
    echo "  update-changelogs.sh 1.6~rc1-1~bazaar1"
15
14
    echo "or"
16
 
    echo "  VERSION=1.6-1~bazaar1 update-changelogs.sh"
 
15
    echo "  update-changelogs.sh 1.6-1~bazaar1"
17
16
    exit
18
17
fi
19
 
 
20
 
if [ -z "$1" ]; then
21
 
    MSG="New upstream release"
22
 
else
23
 
    MSG=$1
24
 
fi
 
18
VERSION=$1
25
19
 
26
20
for DISTRO in $UBUNTU_RELEASES; do
27
21
    PPAVERSION="$VERSION~${DISTRO}1"
28
22
    (
29
23
        echo "Updating changelog for $DISTRO"
30
 
        cd "$PACKAGE-$DISTRO" &&
31
 
            dch -v $PPAVERSION -D $DISTRO "$MSG." &&
32
 
            bzr commit -m "$MSG: $PPAVERSION"
 
24
        cd "packaging-$DISTRO" &&
 
25
        dch -v $PPAVERSION -D $DISTRO -c changelog 'New upstream release.' &&
 
26
        bzr commit -m "New upstream release: $PPAVERSION"
33
27
    )
34
28
done