Add script to automatically update version with a datestamp upon commit. (Thanks nanotube)

This commit is contained in:
Valentin Lorentz 2011-04-26 10:32:49 +02:00
parent 05c9482759
commit 58f115dde8
2 changed files with 5 additions and 1 deletions

4
sandbox/update-version Executable file
View File

@ -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

View File

@ -1,3 +1,3 @@
"""stick the various versioning attributes in here, so we only have to change """stick the various versioning attributes in here, so we only have to change
them once.""" them once."""
version = '0.83.4.1+limnoria' version = '0.83.4.1+limnoria (2011-04-26T10:32:24+0200)'