mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-22 18:14:41 +01:00
Add script to automatically update version with a datestamp upon commit. (Thanks nanotube)
This commit is contained in:
parent
05c9482759
commit
58f115dde8
4
sandbox/update-version
Executable file
4
sandbox/update-version
Executable 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
|
@ -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)'
|
||||
|
Loading…
Reference in New Issue
Block a user