tool fore taggin version and make sure everything is correct

This commit is contained in:
Mattias Andrée 2012-08-26 18:13:29 +02:00
parent f4a16310b3
commit ac662ed1b8
2 changed files with 27 additions and 10 deletions

View file

@ -1,5 +1,9 @@
#!/usr/bin/env bash
# USAGE: dev/dist.sh ttyponies
# or dev/dist.sh pdfmanual
# or dev/dist.sh tag VERSION [OTHER OPTIONS FOR `git tag`]
ttyponies()
{
@ -47,5 +51,18 @@ pdfmanual()
}
tag()
{
version=`./setup.py version`
if [ "version" = 'Ponysay '"$1"' installer' ]; then
git tag -a "$@" && git checkout "$1" && git push -u origin "$1"
else
echo 'Setup script reports. '"$version"
echo 'This is not consistent with desired tag version: '"$1"
echo 'Make sure the version is correct in setup.py and that all change logs are up to date'
fi
}
[ "$1" = './dist.sh' ] && cd ..
"$@"