wscript: sanitize strings from fetch_*_revision_date early instead of applying str() all over

This can perhaps be simplified further when Python2 support is dropped.
This commit is contained in:
Mads Kiilerich 2022-10-16 00:59:21 +02:00 committed by Paul Davis
parent 615326be9b
commit 2973e82a90
7 changed files with 29 additions and 30 deletions

View file

@ -22,7 +22,7 @@ def build(bld):
if bld.env['build_target'] != 'mingw':
obj = bld(features = 'subst')
obj.source = 'ardour-lua.sh.in'
obj.target = 'ardour' + str (bld.env['MAJOR']) + '-lua'
obj.target = 'ardour' + bld.env['MAJOR'] + '-lua'
obj.chmod = Utils.O755
obj.install_path = bld.env['BINDIR']
obj.LIBDIR = os.path.normpath(bld.env['DLLDIR'])
@ -72,6 +72,6 @@ def build(bld):
if bld.env['build_target'] == 'mingw':
obj.install_path = bld.env['BINDIR']
obj.target = 'ardour' + str (bld.env['MAJOR']) + '-lua'
obj.target = 'ardour' + bld.env['MAJOR'] + '-lua'
else:
obj.install_path = bld.env['DLLDIR']