opt.RECURSE('lib/replace')
opt.RECURSE('dynconfig')
opt.RECURSE('lib/ldb')
+ opt.RECURSE('lib/ntdb')
opt.RECURSE('selftest')
opt.RECURSE('source4/lib/tls')
opt.RECURSE('lib/nss_wrapper')
help='enable special build farm options',
action='store_true', dest='BUILD_FARM')
+ opt.add_option('--disable-ntdb',
+ help=("disable ntdb"),
+ action="store_true", dest='disable_ntdb', default=False)
+
+
opt.tool_options('python') # options for disabling pyc or pyo compilation
# enable options related to building python extensions
conf.RECURSE('source4/ntvfs/sysdep')
conf.RECURSE('lib/util')
conf.RECURSE('lib/ccan')
+ conf.env.disable_ntdb = getattr(Options.options, 'disable_ntdb', False)
+ if not Options.options.disable_ntdb:
+ conf.RECURSE('lib/ntdb')
+ else:
+ conf.DEFINE('DISABLE_NTDB', 1)
conf.RECURSE('lib/zlib')
conf.RECURSE('lib/util/charset')
conf.RECURSE('source4/auth')
'''build TAGS file using etags'''
import Utils
source_root = os.path.dirname(Utils.g_module.root_path)
- cmd = 'etags $(find %s -name "*.[ch]" | egrep -v \.inst\.)' % source_root
+ cmd = 'rm -f %s/TAGS && (find %s -name "*.[ch]" | egrep -v \.inst\. | xargs -n 100 etags -a)' % (source_root, source_root)
print("Running: %s" % cmd)
os.system(cmd)
'''build python apidocs'''
bp = os.path.abspath('bin/python')
mpaths = {}
- for m in ['talloc', 'tdb', 'ldb']:
+ for m in ['talloc', 'tdb', 'ldb', 'ntdb']:
f = os.popen("PYTHONPATH=%s python -c 'import %s; print %s.__file__'" % (bp, m, m), 'r')
try:
mpaths[m] = f.read().strip()
finally:
f.close()
cmd='PYTHONPATH=%s pydoctor --introspect-c-modules --project-name=Samba --project-url=http://www.samba.org --make-html --docformat=restructuredtext --add-package bin/python/samba --add-module %s --add-module %s --add-module %s' % (
- bp, mpaths['tdb'], mpaths['ldb'], mpaths['talloc'])
+ bp, mpaths['tdb'], mpaths['ldb'], mpaths['talloc'], mpaths['ntdb'])
print("Running: %s" % cmd)
os.system(cmd)
def dist():
'''makes a tarball for distribution'''
- samba_version.load_version(env=None)
+ sambaversion = samba_version.load_version(env=None)
+
+ if sambaversion.IS_SNAPSHOT:
+ # write .distversion file and add to tar
+ f = '.distversion'
+ distversionf = open(f, 'w')
+ for field in sambaversion.vcs_fields:
+ distveroption = field + '=' + str(sambaversion.vcs_fields[field])
+ distversionf.write(distveroption + '\n')
+ distversionf.close()
+ samba_dist.DIST_FILES('.distversion')
+
samba_dist.dist()
def distcheck():
samba_version.load_version(env=None)
import Scripting
d = Scripting.distcheck
- d(subdir='source4')
+ d()
def wildcard_cmd(cmd):
'''called on a unknown command'''