2.1.16
by Martin Pitt
Import upstream version 0.5.2 |
1 |
#!/bin/sh -e
|
2 |
||
3 |
# This script does all the steps necessary for doing a new upstream release. It
|
|
4 |
# should solely be used by upstream developers, distributors do not need to
|
|
5 |
# worry about it.
|
|
6 |
||
7 |
[ -z "`bzr status`" ] || { |
|
8 |
echo "Uncommitted changes, aborting" >&2 |
|
9 |
exit 1 |
|
10 |
}
|
|
11 |
||
12 |
version="$1" |
|
13 |
[ -n "$version" ] || { |
|
14 |
echo "Usage: $0 <version>" >&2 |
|
15 |
exit 1 |
|
16 |
}
|
|
17 |
||
18 |
# check manifest
|
|
19 |
./setup.py build |
|
20 |
./setup.py sdist -o |
|
21 |
./setup.py clean -a |
|
2.1.32
by Martin Pitt
Import upstream version 0.9.3 |
22 |
missing=$(for f in `find -type f ! -path '*.bzr*' ! -name '*.pyc' ! -name '.coverage' ! -name 'MANIFEST*' ! -name do-release ! -name TODO`; do grep -qFx "${f#./}" < MANIFEST || echo $f; done) |
2.1.16
by Martin Pitt
Import upstream version 0.5.2 |
23 |
if [ -n "$missing" ]; then |
24 |
echo "MANIFEST is missing the following files:" |
|
25 |
echo "$missing" |
|
26 |
exit 1; |
|
27 |
fi
|
|
28 |
||
29 |
set -x
|
|
30 |
||
31 |
sed -i -r "s/(^[[:space:]]*version[[:space:]]*=[[:space:]]*').*\$/\\1${version}',/" setup.py |
|
32 |
bzr commit -m "release $version" |
|
33 |
bzr tag "$version" |
|
34 |
||
35 |
bzr log -v --log-format 'gnu' > ChangeLog
|
|
36 |
./setup.py sdist -d .. |
|
37 |
./setup.py clean -a |
|
38 |
rm ChangeLog MANIFEST |
|
39 |
gpg --armor --sign --detach-sig ../jockey-$version.tar.gz
|