Skip to content

Commit 7b1d024

Browse files
author
dzsekijo
committed
automated the process of creating a release
1 parent 18db002 commit 7b1d024

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

make_release.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/sh -e
2+
3+
# Works only in the hg repo incarnation of the source tree.
4+
# Mercurial, docutils, setuptools needs to be installed.
5+
6+
if ! hg log -r tip --template '{desc}' | grep -q 'Added tag .* for changeset'; then
7+
echo "you forgot to tag before release!" 2>&1
8+
exit 1
9+
fi
10+
11+
hg_tag="`hg tags | awk '{if ($0 !~ /^tip /) { print $1; exit; }}'`"
12+
setupdotpy_version="`python setup.py -V`"
13+
if ! [ "$hg_tag" = "$setupdotpy_version" ]; then
14+
echo "HG tag '$hg_tag' doesn't match reported program version '$setupdotpy_version'" 2>&1
15+
exit 1
16+
fi
17+
18+
hg log --style util/fusepychangelog.tmpl | grep -v '^TAGS: tip$' > Changelog
19+
rst2html.py --stylesheet util/voidspace-fusepy.css README.new_fusepy_api > README.new_fusepy_api.html
20+
python setup.py sdist
21+
python setup.py bdist_egg

0 commit comments

Comments
 (0)