summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-19 14:38:37 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:53 +1000
commit8ba2a345b494ea25bdf5b8f61eae21714f025cb6 (patch)
treed4a5084fa67a5ec3686c129237dced69f4da8a52
parent3ff3a11c33a8a3d9fbacf76fcf59c8c4d929e4a5 (diff)
downloadsamba-8ba2a345b494ea25bdf5b8f61eae21714f025cb6.tar.gz
samba-8ba2a345b494ea25bdf5b8f61eae21714f025cb6.tar.bz2
samba-8ba2a345b494ea25bdf5b8f61eae21714f025cb6.zip
build: fixed git version in samba -V
-rw-r--r--buildtools/wafsamba/samba_patterns.py3
1 files changed, 2 insertions, 1 deletions
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()