wafsamba: Allow to specify VERSION file path
authorAmitay Isaacs <amitay@gmail.com>
Fri, 21 Apr 2017 08:19:00 +0000 (18:19 +1000)
committerAmitay Isaacs <amitay@samba.org>
Wed, 24 May 2017 15:03:28 +0000 (17:03 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
buildtools/wafsamba/samba_patterns.py

index 0481520c3b8b9f658af9ea216bfbd0e945f71684..1baa60190656ca82141a0648a041310747877b73 100644 (file)
@@ -14,7 +14,7 @@ def write_version_header(task):
     return 0
 
 
-def SAMBA_MKVERSION(bld, target):
+def SAMBA_MKVERSION(bld, target, source='VERSION'):
     '''generate the version.h header for Samba'''
 
     # We only force waf to re-generate this file if we are installing,
@@ -22,7 +22,7 @@ def SAMBA_MKVERSION(bld, target):
     # git revision) included in the version.
     t = bld.SAMBA_GENERATOR('VERSION',
                             rule=write_version_header,
-                            source= 'VERSION',
+                            source=source,
                             target=target,
                             always=bld.is_install)
 Build.BuildContext.SAMBA_MKVERSION = SAMBA_MKVERSION