Limnoria/sandbox/update-version

6 lines
232 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
echo "Updating version..."
2012-01-06 18:04:58 +01:00
perl -pi -e "s/^version\s*=\s*['\"]([\S]+)[ '\"].*/version = '\1 ($( TZ="/usr/share/zoneinfo/UTC" date -Iseconds ))'/" src/version.py
git add src/version.py
# vim: set ft=sh: syntax: