django-ddp/bumpversion.sh
2015-04-23 14:52:22 +10:00

3 lines
182 B
Bash
Executable file

#!/bin/sh
cd "${0%/*}"
cat setup.py | sed -e "s/version='[0123456789]\+\.[0123456789]\+\.[01234567989]\+'/version='$( git rev-parse --abbrev-ref HEAD | cut -d / -f 2 )'/" > setup.py