mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-25 05:47:59 +01:00
tool fore taggin version and make sure everything is correct
This commit is contained in:
parent
f4a16310b3
commit
ac662ed1b8
2 changed files with 27 additions and 10 deletions
17
dev/dist.sh
17
dev/dist.sh
|
@ -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 ..
|
||||
"$@"
|
||||
|
|
Loading…
Reference in a new issue