Skip to content

Commit

Permalink
wscript: fix git version generation for tarballs (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
nedko committed Nov 17, 2023
1 parent 109b537 commit c0e7f12
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 @@ -248,14 +248,14 @@ def configure(conf):

def git_ver(self):
if type(self) == Scripting.Dist:
header = "./gitversion.h"
header = "./version.h"
bld = self
else:
bld = self.generator.bld
header = self.outputs[0].abspath()
if os.access('./gitversion.h', os.R_OK):
if os.access('./version.h', os.R_OK):
#header = os.path.join(os.getcwd(), out, "version.h")
shutil.copy('./gitversion.h', header)
shutil.copy('./version.h', header)
data = open(header).read()
m = re.match(r'^#define GIT_VERSION "([^"]*)"$', data)
if m != None:
Expand Down

0 comments on commit c0e7f12

Please sign in to comment.