koch and nims updates
This commit is contained in:
parent
4910a87c6f
commit
4b73194bb0
3 changed files with 3 additions and 36 deletions
|
|
@ -1,25 +1,6 @@
|
|||
|
||||
import ospaths
|
||||
|
||||
mode = ScriptMode.Verbose
|
||||
|
||||
echo "This script is deprecated. Use 'koch nimble' instead."
|
||||
|
||||
var id = 0
|
||||
while dirExists("nimble" & $id):
|
||||
inc id
|
||||
|
||||
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
|
||||
|
||||
try:
|
||||
mvFile "nimble" & $id & "/src/nimble".toExe, "bin/nimble".toExe
|
||||
except OSError:
|
||||
cpFile "nimble" & $id & "/src/nimble".toExe, "bin/nimble".toExe
|
||||
|
||||
exec "koch nimble"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue