Skip to content

Commit

Permalink
wscript: fix git version use when building from tarballs
Browse files Browse the repository at this point in the history
  • Loading branch information
nedko committed Nov 17, 2023
1 parent f21047c commit 8a9626f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def display_feature(conf, msg, build):
def git_ver(self):
bld = self.generator.bld
header = self.outputs[0].abspath()
if os.access('./version.h', os.R_OK):
header = os.path.join(os.getcwd(), out, "version.h")
shutil.copy('./version.h', header)
if os.access('./gitversion.h', os.R_OK):
#header = os.path.join(os.getcwd(), out, "version.h")
shutil.copy('./gitversion.h', header)
data = open(header).read()
m = re.match(r'^#define GIT_VERSION "([^"]*)"$', data)
if m != None:
Expand Down

0 comments on commit 8a9626f

Please sign in to comment.