Skip to content

Commit

Permalink
install_nimble script works with newest Nimble version
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Jan 4, 2016
1 parent ec971a2 commit 93df1bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions install_nimble.nims
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

import ospaths

mode = ScriptMode.Verbose

var id = 0
Expand All @@ -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

0 comments on commit 93df1bc

Please sign in to comment.