Blob Blame Raw
From: Peter Lemenkov <lemenkov@gmail.com>
Date: Tue, 19 Jan 2016 19:08:43 +0300
Subject: [PATCH] Don't assume we have installed Wings

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>

diff --git a/tools/release b/tools/release
index eb4fb451..1caccbda 100755
--- a/tools/release
+++ b/tools/release
@@ -36,7 +36,11 @@ main(_) ->
     end.
 
 release() ->
-    ok = file:set_cwd(lib_dir(wings)),
+    WingsDir = code:lib_dir(wings),
+    case WingsDir of
+        {error,bad_name} -> ok;
+        _ -> ok = file:set_cwd(WingsDir)
+    end,
     WingsVsn = get_vsn("vsn.mk", "WINGS_VSN"),
     Build = filename:absname("build"),
     run("rm", ["-rf",Build]),