forked from len0rd/rockbox
Make revision handling work when building from local folder.
Change-Id: I8e6cc0eb8a5bff722bf5278ffa7685436c3d846a
This commit is contained in:
parent
5f5d7f608a
commit
e5320303cc
1 changed files with 2 additions and 3 deletions
|
@ -43,7 +43,6 @@ import getopt
|
||||||
import time
|
import time
|
||||||
import hashlib
|
import hashlib
|
||||||
import tempfile
|
import tempfile
|
||||||
import string
|
|
||||||
import gitscraper
|
import gitscraper
|
||||||
|
|
||||||
# modules that are not part of python itself.
|
# modules that are not part of python itself.
|
||||||
|
@ -537,12 +536,12 @@ def deploy():
|
||||||
archivename = program + "-" + str(revision) + versionextra + "-src.tar.bz2"
|
archivename = program + "-" + str(revision) + versionextra + "-src.tar.bz2"
|
||||||
ver = str(revision)
|
ver = str(revision)
|
||||||
os.mkdir(sourcefolder)
|
os.mkdir(sourcefolder)
|
||||||
|
print "Version: %s" % revision
|
||||||
else:
|
else:
|
||||||
workfolder = "."
|
workfolder = "."
|
||||||
sourcefolder = "."
|
sourcefolder = "."
|
||||||
archivename = ""
|
archivename = ""
|
||||||
# check if project file explicitly given. If yes, don't get sources from svn
|
# check if project file explicitly given. If yes, don't get sources from svn
|
||||||
print "Version: %s" % revision
|
|
||||||
if proj == "":
|
if proj == "":
|
||||||
proj = sourcefolder + project
|
proj = sourcefolder + project
|
||||||
# get sources and pack source tarball
|
# get sources and pack source tarball
|
||||||
|
@ -585,7 +584,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)
|
ver = findversion(versionfile) + "-dev"
|
||||||
# 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