From 93df1bc11a5ce9a3ff1d3d7486c486f263ac8848 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 4 Jan 2016 16:36:56 +0100 Subject: [PATCH] install_nimble script works with newest Nimble version --- install_nimble.nims | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install_nimble.nims b/install_nimble.nims index 5e363c6892..5d028726be 100644 --- a/install_nimble.nims +++ b/install_nimble.nims @@ -1,4 +1,6 @@ +import ospaths + mode = ScriptMode.Verbose var id = 0 @@ -10,4 +12,8 @@ exec "git clone https://github.com/nim-lang/nimble.git nimble" & $id withDir "nimble" & $id & "/src": exec "nim c nimble" +mkDir "bin/nimblepkg" +for file in listFiles("nimble" & $id & "/src/nimblepkg/"): + cpFile file, "bin/nimblepkg/" & file.extractFilename + mvFile "nimble" & $id & "/src/nimble".toExe, "bin/nimble".toExe