summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-09-12 17:02:39 +0200
committerStefan Metzmacher <metze@samba.org>2012-09-12 23:53:02 +0200
commit8ea2a468c38d07c62d094e2bd4c1dc42f9c47949 (patch)
treefb7b11146d0dc971fcc1ed665125deaa5506479a /buildtools/wafsamba
parent4989a9dd7c89e446e59e9faf7cbe4a9a6b0083a8 (diff)
downloadsamba-8ea2a468c38d07c62d094e2bd4c1dc42f9c47949.tar.gz
samba-8ea2a468c38d07c62d094e2bd4c1dc42f9c47949.tar.bz2
samba-8ea2a468c38d07c62d094e2bd4c1dc42f9c47949.zip
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>
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/samba_dist.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_dist.py b/buildtools/wafsamba/samba_dist.py
index 871c111019..a2c75593f2 100644
--- a/buildtools/wafsamba/samba_dist.py
+++ b/buildtools/wafsamba/samba_dist.py
@@ -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):