Limnoria/sandbox/update-version
2012-01-06 18:04:58 +01:00

6 lines
232 B
Bash
Executable File

#!/usr/bin/env bash
echo "Updating version..."
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: