forked from len0rd/rockbox
Append build date when building dev version from local foler.
Change-Id: I1172cb0c4910f1d49b6a5d1125a809491a5aba9c
This commit is contained in:
parent
3e5e9cf7d7
commit
8360937ac2
1 changed files with 2 additions and 1 deletions
|
@ -44,6 +44,7 @@ import time
|
||||||
import hashlib
|
import hashlib
|
||||||
import tempfile
|
import tempfile
|
||||||
import gitscraper
|
import gitscraper
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
# modules that are not part of python itself.
|
# modules that are not part of python itself.
|
||||||
cpus = 1
|
cpus = 1
|
||||||
|
@ -584,7 +585,7 @@ def deploy():
|
||||||
else:
|
else:
|
||||||
# figure version from sources. Need to take path to project file into account.
|
# figure version from sources. Need to take path to project file into account.
|
||||||
versionfile = re.subn('[\w\.]+$', "version.h", proj)[0]
|
versionfile = re.subn('[\w\.]+$', "version.h", proj)[0]
|
||||||
ver = findversion(versionfile) + "-dev"
|
ver = findversion(versionfile) + "-dev" + datetime.now().strftime('%Y%m%d%H%M%S')
|
||||||
# append buildid if any.
|
# append buildid if any.
|
||||||
if buildid != None:
|
if buildid != None:
|
||||||
ver += "-" + buildid
|
ver += "-" + buildid
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue