diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-01-04 16:36:56 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-01-04 16:37:26 +0100 |
commit | 93df1bc11a5ce9a3ff1d3d7486c486f263ac8848 (patch) | |
tree | 3dbbd997a90354f801513d0588cd5c42bf3a1eb3 /install_nimble.nims | |
parent | ec971a2c9de365b0f076a4d724d12b23d672a2ae (diff) | |
download | Nim-93df1bc11a5ce9a3ff1d3d7486c486f263ac8848.tar.gz |
install_nimble script works with newest Nimble version
Diffstat (limited to 'install_nimble.nims')
-rw-r--r-- | install_nimble.nims | 6 |
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 |