summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-04 09:57:33 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:24 +1000
commitc8062fb65ee108fa948fd8d8ed4055ffa3af7027 (patch)
tree51aa3a475537d4cc89dc5b54965b5efdc35b6867 /source4
parent735934bfede08f37707a070f977837a9f76e3242 (diff)
downloadsamba-c8062fb65ee108fa948fd8d8ed4055ffa3af7027.tar.gz
samba-c8062fb65ee108fa948fd8d8ed4055ffa3af7027.tar.bz2
samba-c8062fb65ee108fa948fd8d8ed4055ffa3af7027.zip
s4-waf: added 'waf dist' to build the tarball
Diffstat (limited to 'source4')
-rw-r--r--source4/wscript12
1 files changed, 11 insertions, 1 deletions
diff --git a/source4/wscript b/source4/wscript
index b0e2368547..816093e293 100644
--- a/source4/wscript
+++ b/source4/wscript
@@ -3,9 +3,12 @@
srcdir = '..'
blddir = 'bin'
+APPNAME='samba'
+VERSION='4.0.0-alpha13'
+
import sys, os
sys.path.insert(0, srcdir+"/buildtools/wafsamba")
-import wafsamba, Options
+import wafsamba, Options, samba_dist
# install in /usr/local/samba by default
Options.default_prefix = '/usr/local/samba'
@@ -36,6 +39,7 @@ def configure(conf):
conf.DEFINE('CONFIG_H_IS_FROM_SAMBA', 1)
conf.DEFINE('_SAMBA_BUILD_', 4, add_to_cflags=True)
conf.DEFINE('HAVE_CONFIG_H', 1, add_to_cflags=True)
+ conf.DIST_DIRS('.')
if Options.options.developer:
conf.ADD_CFLAGS('-DDEVELOPER -DDEBUG_PASSWORD')
@@ -120,3 +124,9 @@ def wafdocs(ctx):
cmd += ' --add-module %s' % f
print "Running: %s" % cmd
os.system(cmd)
+
+
+def dist():
+ '''makes a tarball for distribution'''
+ samba_dist.dist()
+