Limnoria/sandbox/update-version

5 lines
176 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
echo "Updating version..."
perl -pi -e "s/^version\s*=\s*['\"]([\S]+)[ '\"].*/version = '\1 ($( date -Iseconds ))'/" src/version.py
git add src/version.py