aboutsummaryrefslogtreecommitdiffstats
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2017-04-21 18:19:00 +1000
committerAmitay Isaacs <amitay@samba.org>2017-05-24 17:03:28 +0200
commitae35bb8eaf5a4b2442c7d61f1332c1709e90e1f8 (patch)
treee4c77c6a20c4949fd5cdd4b3312a157608027135 /buildtools/wafsamba
parentf5f05a644dadc0b1858c99c5f1f5af1ef80f3a28 (diff)
downloadsamba-ae35bb8eaf5a4b2442c7d61f1332c1709e90e1f8.tar.gz
samba-ae35bb8eaf5a4b2442c7d61f1332c1709e90e1f8.tar.xz
samba-ae35bb8eaf5a4b2442c7d61f1332c1709e90e1f8.zip
wafsamba: Allow to specify VERSION file path
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/samba_patterns.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildtools/wafsamba/samba_patterns.py b/buildtools/wafsamba/samba_patterns.py
index 0481520c3b8..1baa6019065 100644
--- a/buildtools/wafsamba/samba_patterns.py
+++ b/buildtools/wafsamba/samba_patterns.py
@@ -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