Skip to content

Commit

Permalink
Merge branch 'stable' into 'main'
Browse files Browse the repository at this point in the history
  • Loading branch information
nedko committed Nov 26, 2023
2 parents ad9f04a + 4e73e70 commit 37d90eb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -654,12 +654,13 @@ class ladish_dist(Scripting.Dist):
fun = 'dist'

def __init__(self):
Dist.__init__(self)
Scripting.Dist.__init__(self)
if Options.options.distname:
self.base_name = Options.options.distname
else:
try:
self.base_name = self.cmd_and_log("LANG= git describe --tags", quiet=Context.BOTH).splitlines()[0]
sha = self.cmd_and_log("LANG= git rev-parse --short HEAD", quiet=Context.BOTH).splitlines()[0]
self.base_name = APPNAME + '-' + VERSION + "-g" + sha
except:
self.base_name = APPNAME + '-' + VERSION
self.base_name += Options.options.distsuffix
Expand All @@ -675,7 +676,7 @@ class ladish_dist(Scripting.Dist):
return self.base_name

def get_excl(self):
excl = Dist.get_excl(self)
excl = Scripting.Dist.get_excl(self)

excl += ' .gitmodules'
excl += ' GTAGS'
Expand Down

0 comments on commit 37d90eb

Please sign in to comment.