s3:smbd: check the share level access mask in smbd_calculate_access_mask()
[Samba/gebeck_regimport.git] / buildtools / wafsamba / samba_patterns.py
blobf064608f3a3051818fb7ddba9c42d10b8296402d
1 # a waf tool to add extension based build patterns for Samba
3 import Task
4 from TaskGen import extension
5 from samba_utils import *
6 from wafsamba import samba_version_file
8 def write_version_header(task):
9 '''print version.h contents'''
10 src = task.inputs[0].srcpath(task.env)
11 tgt = task.outputs[0].bldpath(task.env)
13 version = samba_version_file(src, task.env.srcdir, env=task.env, is_install=task.env.is_install)
14 string = str(version)
16 f = open(tgt, 'w')
17 s = f.write(string)
18 f.close()
19 return 0
22 def SAMBA_MKVERSION(bld, target):
23 '''generate the version.h header for Samba'''
24 t = bld.SAMBA_GENERATOR('VERSION',
25 rule=write_version_header,
26 source= 'VERSION',
27 target=target,
28 always=True)
29 t.env.is_install = bld.is_install
30 Build.BuildContext.SAMBA_MKVERSION = SAMBA_MKVERSION