build: make sure the directory exists in TOUCH_FILE()
authorAndrew Tridgell <tridge@samba.org>
Fri, 2 Apr 2010 02:10:14 +0000 (13:10 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:23 +0000 (20:27 +1000)
buildtools/wafsamba/samba_utils.py

index 03325e08db64cc74950587da0d761ffdba19cb39..5637a305d0d5482fb7ef50fb09aa88cc3769f452 100644 (file)
@@ -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()