1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

build: fixed git version in samba -V

This commit is contained in:
Andrew Tridgell 2010-03-19 14:38:37 +11:00
parent 3ff3a11c33
commit 8ba2a345b4

View File

@ -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()