mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Add script to automatically update version with a datestamp upon commit.
This commit is contained in:
parent
2a40d6eb90
commit
05e8b658e6
10
sandbox/version-commit
Executable file
10
sandbox/version-commit
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Use this script to make commits. It will automatically update the version
|
||||||
|
# string to have a datetime stamp, prior to committing.
|
||||||
|
# All arguments get passed to git commit, so of course, use the -a option so that
|
||||||
|
# the version change gets added to the commit.
|
||||||
|
echo "Updating version..."
|
||||||
|
perl -pi -e "s/^version\s*=\s*['\"]([\S]+)[ '\"].*/version = '\1 ($( date -Iseconds ))'/" src/version.py
|
||||||
|
if [ "$?" -eq "0" ]; then
|
||||||
|
git commit $@
|
||||||
|
fi
|
@ -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+gribble'
|
version = '0.83.4.1+gribble (2010-08-20T11:08:31-0400)'
|
||||||
|
Loading…
Reference in New Issue
Block a user