summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-19 21:00:36 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-19 21:00:36 +1000
commitdb0eb2f239c9bbd3aeff06eee31102830eb42f11 (patch)
treea32988e0540fe6be5ef68fb0cfc48b5e1ea2752e
parentd2b35c3a24b9bae88b996f8bc70e6a6012fd16f5 (diff)
downloadsamba-db0eb2f239c9bbd3aeff06eee31102830eb42f11.tar.gz
samba-db0eb2f239c9bbd3aeff06eee31102830eb42f11.tar.bz2
samba-db0eb2f239c9bbd3aeff06eee31102830eb42f11.zip
s4-waf: install some missing empty directories
-rw-r--r--buildtools/wafsamba/wafsamba.py7
-rw-r--r--source4/wscript_build3
2 files changed, 10 insertions, 0 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index a750a161c9..c3dd32c97d 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -598,6 +598,13 @@ def INSTALL_WILDCARD(bld, destdir, pattern, chmod=O644, flat=False,
Build.BuildContext.INSTALL_WILDCARD = INSTALL_WILDCARD
+def INSTALL_DIRS(bld, destdir, dirs):
+ '''install a set of directories'''
+ for d in TO_LIST(dirs):
+ bld.install_dir(os.path.join(destdir, d))
+Build.BuildContext.INSTALL_DIRS = INSTALL_DIRS
+
+
def PUBLIC_HEADERS(bld, public_headers, header_path=None):
'''install some headers
diff --git a/source4/wscript_build b/source4/wscript_build
index 0fbd05914e..788fdba2a5 100644
--- a/source4/wscript_build
+++ b/source4/wscript_build
@@ -116,3 +116,6 @@ bld.RECURSE('setup')
bld.RECURSE('scripting')
bld.RECURSE('../pidl')
bld.RECURSE('../lib')
+
+# install some extra empty directories
+bld.INSTALL_DIRS("${PREFIX}", "etc var/lib var/locks var/run")