s4-waf: install some missing empty directories
authorAndrew Tridgell <tridge@samba.org>
Mon, 19 Apr 2010 11:00:36 +0000 (21:00 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 19 Apr 2010 11:00:36 +0000 (21:00 +1000)
buildtools/wafsamba/wafsamba.py
source4/wscript_build

index a750a161c9dbba8f418dd2d84aa2dbaf867746be..c3dd32c97d94e2b24471020bf4f335154f4c80ed 100644 (file)
@@ -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
 
index 0fbd05914e343223b6c2e76e4057916d6bb7bd9c..788fdba2a5b5f92cedfa68bda0f224444aa5b90e 100644 (file)
@@ -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")