From db0eb2f239c9bbd3aeff06eee31102830eb42f11 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 19 Apr 2010 21:00:36 +1000 Subject: s4-waf: install some missing empty directories --- buildtools/wafsamba/wafsamba.py | 7 +++++++ source4/wscript_build | 3 +++ 2 files changed, 10 insertions(+) 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") -- cgit