fh.close()
-def dist():
- appname = Utils.g_module.APPNAME
- version = Utils.g_module.VERSION
+def dist(appname='',version=''):
+ if not isinstance(appname, str):
+ # this copes with a mismatch in the calling arguments for dist()
+ appname = Utils.g_module.APPNAME
+ version = Utils.g_module.VERSION
+ if not version:
+ version = Utils.g_module.VERSION
srcdir = os.path.normpath(os.path.join(os.path.dirname(Utils.g_module.root_path), Utils.g_module.srcdir))
tar.close()
print('Created %s' % dist_name)
+ return dist_name
@conf
source='hdr_replace.h',
target='stdbool.h',
enabled = not bld.CONFIG_SET('HAVE_STDBOOL_H'))
+
+def dist():
+ '''makes a tarball for distribution'''
+ samba_dist.dist()
import Utils
cmd = os.path.join(Utils.g_module.blddir, 'talloc_testsuite')
os.system(cmd)
+
+def dist():
+ '''makes a tarball for distribution'''
+ samba_dist.dist()
import Utils
cmd = os.path.join(Utils.g_module.blddir, 'tdbtorture')
os.system(cmd)
+
+def dist():
+ '''makes a tarball for distribution'''
+ samba_dist.dist()
'''test tevent'''
print("The tevent testsuite is part of smbtorture in samba4")
+
+def dist():
+ '''makes a tarball for distribution'''
+ samba_dist.dist()
import wafsamba, samba_dist
-samba_dist.DIST_DIRS('''lib/ldb:. lib/replace:lib/replace lib/talloc:lib/talloc
- lib/tdb:lib/tdb lib/tevent:lib/tevent buildtools:buildtools''')
+samba_dist.DIST_DIRS('''source4/lib/ldb:. lib/replace:lib/replace lib/talloc:lib/talloc
+ lib/tdb:lib/tdb lib/tevent:lib/tevent lib/popt:lib/popt
+ buildtools:buildtools''')
def set_options(opt):
import Utils
cmd = 'tests/test-tdb.sh'
os.system(cmd)
+
+def dist():
+ '''makes a tarball for distribution'''
+ samba_dist.dist()