mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
b7ff06b904
use python string conventions for function comments
18 lines
548 B
Python
18 lines
548 B
Python
# a waf tool to add extension based build patterns for Samba
|
|
|
|
import Task
|
|
from TaskGen import extension
|
|
from samba_utils import *
|
|
|
|
def SAMBA_MKVERSION(bld, target):
|
|
'''generate the version.h header for Samba'''
|
|
bld.SET_BUILD_GROUP('setup')
|
|
t = bld(rule="cd .. && ${SRC[0].abspath(env)} VERSION ${TGT[0].abspath(env)}",
|
|
source= [ "script/mkversion.sh", 'VERSION' ],
|
|
target=target,
|
|
shell=True,
|
|
on_results=True,
|
|
before="cc")
|
|
Build.BuildContext.SAMBA_MKVERSION = SAMBA_MKVERSION
|
|
|