mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
build:wafsamba: Specify whether node objects or flat lists in ant_glob
The changes enable the ant_glob declaration to be compatible with more recent versions of Waf. Signed-off-by: Thomas Nagy <tnagy@waf.io> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
22386dc396
commit
cc4f7e3933
@ -225,7 +225,7 @@ def abi_build_vscript(task):
|
||||
def ABI_VSCRIPT(bld, libname, abi_directory, version, vscript, abi_match=None):
|
||||
'''generate a vscript file for our public libraries'''
|
||||
if abi_directory:
|
||||
source = bld.path.ant_glob('%s/%s-[0-9]*.sigs' % (abi_directory, libname))
|
||||
source = bld.path.ant_glob('%s/%s-[0-9]*.sigs' % (abi_directory, libname), flat=True)
|
||||
def abi_file_key(path):
|
||||
return version_key(path[:-len(".sigs")].rsplit("-")[-1])
|
||||
source = sorted(source.split(), key=abi_file_key)
|
||||
|
@ -727,7 +727,7 @@ def SAMBA_SCRIPT(bld, name, pattern, installdir, installname=None):
|
||||
'''used to copy scripts from the source tree into the build directory
|
||||
for use by selftest'''
|
||||
|
||||
source = bld.path.ant_glob(pattern)
|
||||
source = bld.path.ant_glob(pattern, flat=True)
|
||||
|
||||
bld.SET_BUILD_GROUP('build_source')
|
||||
for s in TO_LIST(source):
|
||||
@ -856,7 +856,7 @@ Build.BuildContext.INSTALL_FILES = INSTALL_FILES
|
||||
def INSTALL_WILDCARD(bld, destdir, pattern, chmod=MODE_644, flat=False,
|
||||
python_fixup=False, exclude=None, trim_path=None):
|
||||
'''install a set of files matching a wildcard pattern'''
|
||||
files=TO_LIST(bld.path.ant_glob(pattern))
|
||||
files=TO_LIST(bld.path.ant_glob(pattern, flat=True))
|
||||
if trim_path:
|
||||
files2 = []
|
||||
for f in files:
|
||||
|
@ -116,7 +116,7 @@ def smbdotconf_generate_parameter_list(task):
|
||||
save_file(parameter_all, t , create_dir=True)
|
||||
return 0
|
||||
|
||||
articles = bld.path.ant_glob("smbdotconf/**/*.xml")
|
||||
articles = bld.path.ant_glob("smbdotconf/**/*.xml", flat=True)
|
||||
parameter_all = 'smbdotconf/parameters.all.xml'
|
||||
bld.SAMBA_GENERATOR(parameter_all,
|
||||
source=articles,
|
||||
|
Reference in New Issue
Block a user