Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/bin/bash
- branch=master
- versionfile=src/module/__init__.py
- for commit in $(git rev-list $branch --reverse)
- do
- version=$(git show $commit:$versionfile | sed -n -e "s/^__version__ = \"\([0-9]\+\(\.[0-9]\)\+\)\"/\1/p")
- echo $version
- git tag -a v$version $commit -m "Release, v$version"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement