From 8ba2a345b494ea25bdf5b8f61eae21714f025cb6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 19 Mar 2010 14:38:37 +1100 Subject: build: fixed git version in samba -V --- buildtools/wafsamba/samba_patterns.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'buildtools') diff --git a/buildtools/wafsamba/samba_patterns.py b/buildtools/wafsamba/samba_patterns.py index 237020ba29..fa1b70de7a 100644 --- a/buildtools/wafsamba/samba_patterns.py +++ b/buildtools/wafsamba/samba_patterns.py @@ -7,9 +7,10 @@ from samba_utils import * def SAMBA_MKVERSION(bld, target): '''generate the version.h header for Samba''' bld.SET_BUILD_GROUP('setup') - t = bld(rule="${SRC} ${TGT}", + t = bld(rule="cd .. && ${SRC[0].abspath(env)} VERSION ${TGT[0].abspath(env)}", source= [ "script/mkversion.sh", 'VERSION' ], target=target, + shell=True, before="cc") # force this rule to be constructed now t.post() -- cgit