summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-02 13:10:14 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:23 +1000
commit470c14cbf383631683355f723d219a12dc0998e8 (patch)
tree412f37b0ceb9a26c5da8dc3ed08dd110f5f58d76 /buildtools
parent31a88f266c5b4e884276f92f3801eec4e1033f8d (diff)
downloadsamba-470c14cbf383631683355f723d219a12dc0998e8.tar.gz
samba-470c14cbf383631683355f723d219a12dc0998e8.tar.bz2
samba-470c14cbf383631683355f723d219a12dc0998e8.zip
build: make sure the directory exists in TOUCH_FILE()
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py
index 03325e08db..5637a305d0 100644
--- a/buildtools/wafsamba/samba_utils.py
+++ b/buildtools/wafsamba/samba_utils.py
@@ -410,5 +410,6 @@ Build.BuildContext.IS_NEWER = IS_NEWER
def TOUCH_FILE(file):
'''touch a file'''
+ mkdir_p(os.path.dirname(file))
f = open(file, 'w')
f.close()