summary refs log tree commit diff stats
path: root/install_nimble.nims
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-01-04 16:36:56 +0100
committerAndreas Rumpf <rumpf_a@web.de>2016-01-04 16:37:26 +0100
commit93df1bc11a5ce9a3ff1d3d7486c486f263ac8848 (patch)
tree3dbbd997a90354f801513d0588cd5c42bf3a1eb3 /install_nimble.nims
parentec971a2c9de365b0f076a4d724d12b23d672a2ae (diff)
downloadNim-93df1bc11a5ce9a3ff1d3d7486c486f263ac8848.tar.gz
install_nimble script works with newest Nimble version
Diffstat (limited to 'install_nimble.nims')
-rw-r--r--install_nimble.nims6
1 files changed, 6 insertions, 0 deletions
diff --git a/install_nimble.nims b/install_nimble.nims
index 5e363c689..5d028726b 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