From 58f115dde86a7d3326acb93ef80455bb13321b0d Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Tue, 26 Apr 2011 10:32:49 +0200 Subject: [PATCH] Add script to automatically update version with a datestamp upon commit. (Thanks nanotube) --- sandbox/update-version | 4 ++++ src/version.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 sandbox/update-version diff --git a/sandbox/update-version b/sandbox/update-version new file mode 100755 index 000000000..1eda83afe --- /dev/null +++ b/sandbox/update-version @@ -0,0 +1,4 @@ +#!/bin/bash +echo "Updating version..." +perl -pi -e "s/^version\s*=\s*['\"]([\S]+)[ '\"].*/version = '\1 ($( date -Iseconds ))'/" src/version.py +git add src/version.py diff --git a/src/version.py b/src/version.py index 021bfc216..b73d4b4e4 100644 --- a/src/version.py +++ b/src/version.py @@ -1,3 +1,3 @@ """stick the various versioning attributes in here, so we only have to change them once.""" -version = '0.83.4.1+limnoria' +version = '0.83.4.1+limnoria (2011-04-26T10:32:24+0200)'