install_nimble script works with newest Nimble version

This commit is contained in:
Andreas Rumpf
2016-01-04 16:36:56 +01:00
parent ec971a2c9d
commit 93df1bc11a

View File

@@ -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