s4-waf: fixed waf distcheck for our standalone libs and s4
authorAndrew Tridgell <tridge@samba.org>
Sun, 4 Apr 2010 23:58:23 +0000 (09:58 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:26 +0000 (20:27 +1000)
buildtools/wafsamba/samba_dist.py
lib/replace/wscript
lib/talloc/wscript
lib/tdb/wscript
lib/tevent/wscript
source4/lib/ldb/wscript

index 3663bc0bf5b79a1c3d37598f641a8784d0f03354..e01bebe9edaeabe47ddc5d6015a54e20396d122c 100644 (file)
@@ -18,9 +18,13 @@ def add_tarfile(tar, fname, abspath):
     fh.close()
 
 
     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))
 
 
     srcdir = os.path.normpath(os.path.join(os.path.dirname(Utils.g_module.root_path), Utils.g_module.srcdir))
 
@@ -58,6 +62,7 @@ def dist():
     tar.close()
 
     print('Created %s' % dist_name)
     tar.close()
 
     print('Created %s' % dist_name)
+    return dist_name
 
 
 @conf
 
 
 @conf
index 70475c4f29ec206f9ca83bb1fb7d669d8699afcf..511cbeac30f46767ef91e93bbc53e8ac61b1a915 100644 (file)
@@ -353,3 +353,7 @@ def build(bld):
                         source='hdr_replace.h',
                         target='stdbool.h',
                         enabled = not bld.CONFIG_SET('HAVE_STDBOOL_H'))
                         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()
index fadb4590ccb2867740897cd479041628295a3204..7dc12c5de92da887c60ce959d269f7fdcf44a0b1 100644 (file)
@@ -66,3 +66,7 @@ def test(ctx):
     import Utils
     cmd = os.path.join(Utils.g_module.blddir, 'talloc_testsuite')
     os.system(cmd)
     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()
index 90fa191bf83fcf6708961560ca31a4aee1896c08..d80b7209b0f814da93337927ed418cc527a21f2a 100644 (file)
@@ -76,3 +76,7 @@ def test(ctx):
     import Utils
     cmd = os.path.join(Utils.g_module.blddir, 'tdbtorture')
     os.system(cmd)
     import Utils
     cmd = os.path.join(Utils.g_module.blddir, 'tdbtorture')
     os.system(cmd)
+
+def dist():
+    '''makes a tarball for distribution'''
+    samba_dist.dist()
index 9f7e25d241ee30ee8796abb34f25a541ceab2294..ee15b95610705d75ef369353a0411b5de03aa78b 100644 (file)
@@ -58,3 +58,7 @@ def test(ctx):
     '''test tevent'''
     print("The tevent testsuite is part of smbtorture in samba4")
 
     '''test tevent'''
     print("The tevent testsuite is part of smbtorture in samba4")
 
+
+def dist():
+    '''makes a tarball for distribution'''
+    samba_dist.dist()
index 971c6688f30747648bc9a980688f7b7d70853997..911eb77fb227b0acedff23ece25acd7ac34b994e 100644 (file)
@@ -15,8 +15,9 @@ sys.path.insert(0, srcdir + '/buildtools/wafsamba')
 
 import wafsamba, samba_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):
 
 
 def set_options(opt):
@@ -180,3 +181,7 @@ def test(ctx):
     import Utils
     cmd = 'tests/test-tdb.sh'
     os.system(cmd)
     import Utils
     cmd = 'tests/test-tdb.sh'
     os.system(cmd)
+
+def dist():
+    '''makes a tarball for distribution'''
+    samba_dist.dist()