build:dist: extend samba_dist.DIST_FILES() to take optional parameter extend(=False)
authorMichael Adam <obnox@samba.org>
Wed, 12 Sep 2012 15:02:39 +0000 (17:02 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 12 Sep 2012 21:53:02 +0000 (23:53 +0200)
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>
buildtools/wafsamba/samba_dist.py

index 871c11101967ef15a9f9903e411bb86d053b425d..a2c75593f27ff7857f104f6e939ed3a2e741145b 100644 (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):