From 88f901f36eec4349b527ef7d182f0c992a23b793 Mon Sep 17 00:00:00 2001 From: David Majda Date: Mon, 24 Jan 2011 13:57:48 +0100 Subject: [PATCH] Jakefile: Create the "lib" directory if it does not exist Closes GH-14. Closes GH-15. --- Jakefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jakefile b/Jakefile index 49ab00e..25f0ef1 100644 --- a/Jakefile +++ b/Jakefile @@ -66,6 +66,11 @@ task("build", [], function() { } fs.writeFileSync(PEGJS_OUT_FILE, preprocess(PEGJS_SRC_FILE), "utf8"); + try { + fs.statSync(LIB_DIR); + } catch (e) { + fs.mkdirSync(LIB_DIR, 0755); + } }); task("default", ["build"], function() {});