mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
better error checking for install_tools.nims script
This commit is contained in:
@@ -3,13 +3,16 @@ import ospaths
|
||||
|
||||
mode = ScriptMode.Verbose
|
||||
|
||||
let nimbleExe = "./bin/nimble".toExe
|
||||
selfExec "c --noNimblePath -p:compiler -o:" & nimbleExe &
|
||||
" dist/nimble/src/nimble.nim"
|
||||
if not dirExists"dist/nimble":
|
||||
echo "[Error] This script only works for the tarball."
|
||||
else:
|
||||
let nimbleExe = "./bin/nimble".toExe
|
||||
selfExec "c --noNimblePath -p:compiler -o:" & nimbleExe &
|
||||
" dist/nimble/src/nimble.nim"
|
||||
|
||||
let nimsugExe = "./bin/nimsuggest".toExe
|
||||
selfExec "c --noNimblePath -p:compiler -o:" & nimsugExe &
|
||||
" dist/nimsuggest/nimsuggest.nim"
|
||||
let nimsugExe = "./bin/nimsuggest".toExe
|
||||
selfExec "c --noNimblePath -p:compiler -o:" & nimsugExe &
|
||||
" dist/nimsuggest/nimsuggest.nim"
|
||||
|
||||
let nimgrepExe = "./bin/nimgrep".toExe
|
||||
selfExec "c -o:./bin/nimgrep tools/nimgrep.nim"
|
||||
let nimgrepExe = "./bin/nimgrep".toExe
|
||||
selfExec "c -o:./bin/nimgrep tools/nimgrep.nim"
|
||||
|
||||
Reference in New Issue
Block a user