viv/scripts/bump-dev.sh

6 lines
204 B
Bash
Raw Normal View History

2023-05-28 17:31:10 -05:00
#!/usr/bin/env sh
TAG=$(git describe --tags --always --dirty=-dev --exclude 'latest')
VERSION="${TAG#v}"
sed -i "s/__version__ = \".*\"/__version__ = \"$VERSION\"/g" src/viv/viv.py
git add src/viv/viv.py