1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

build:dist: extend samba_dist.DIST_FILES() to take optional parameter extend(=False)

This allows to do multpile DIST_FILES() calls that will extend the list
rather than only setting it initially.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Michael Adam 2012-09-12 17:02:39 +02:00 committed by Stefan Metzmacher
parent 4989a9dd7c
commit 8ea2a468c3

View File

@ -219,11 +219,13 @@ def DIST_DIRS(dirs):
dist_dirs = dirs
@conf
def DIST_FILES(files):
def DIST_FILES(files, extend=False):
'''set additional files for packaging, relative to top srcdir'''
global dist_files
if not dist_files:
dist_files = files
elif extend:
dist_files = dist_files + " " + files
@conf
def DIST_BLACKLIST(blacklist):