6b1b64
From: Peter Lemenkov <lemenkov@gmail.com>
6b1b64
Date: Tue, 19 Jan 2016 19:08:43 +0300
6b1b64
Subject: [PATCH] Don't assume we have installed Wings
6b1b64
6b1b64
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
6b1b64
6b1b64
diff --git a/tools/release b/tools/release
146430
index eb4fb451..1caccbda 100755
6b1b64
--- a/tools/release
6b1b64
+++ b/tools/release
146430
@@ -36,7 +36,11 @@ main(_) ->
6b1b64
     end.
6b1b64
 
6b1b64
 release() ->
79accd
-    ok = file:set_cwd(lib_dir(wings)),
6b1b64
+    WingsDir = code:lib_dir(wings),
6b1b64
+    case WingsDir of
6b1b64
+        {error,bad_name} -> ok;
6b1b64
+        _ -> ok = file:set_cwd(WingsDir)
6b1b64
+    end,
6b1b64
     WingsVsn = get_vsn("vsn.mk", "WINGS_VSN"),
6b1b64
     Build = filename:absname("build"),
6b1b64
     run("rm", ["-rf",Build]),