better error checking for install_tools.nims script
This commit is contained in:
parent
08913db924
commit
c96295b380
1 changed files with 11 additions and 8 deletions
|
|
@ -3,13 +3,16 @@ import ospaths
|
||||||
|
|
||||||
mode = ScriptMode.Verbose
|
mode = ScriptMode.Verbose
|
||||||
|
|
||||||
let nimbleExe = "./bin/nimble".toExe
|
if not dirExists"dist/nimble":
|
||||||
selfExec "c --noNimblePath -p:compiler -o:" & nimbleExe &
|
echo "[Error] This script only works for the tarball."
|
||||||
" dist/nimble/src/nimble.nim"
|
else:
|
||||||
|
let nimbleExe = "./bin/nimble".toExe
|
||||||
|
selfExec "c --noNimblePath -p:compiler -o:" & nimbleExe &
|
||||||
|
" dist/nimble/src/nimble.nim"
|
||||||
|
|
||||||
let nimsugExe = "./bin/nimsuggest".toExe
|
let nimsugExe = "./bin/nimsuggest".toExe
|
||||||
selfExec "c --noNimblePath -p:compiler -o:" & nimsugExe &
|
selfExec "c --noNimblePath -p:compiler -o:" & nimsugExe &
|
||||||
" dist/nimsuggest/nimsuggest.nim"
|
" dist/nimsuggest/nimsuggest.nim"
|
||||||
|
|
||||||
let nimgrepExe = "./bin/nimgrep".toExe
|
let nimgrepExe = "./bin/nimgrep".toExe
|
||||||
selfExec "c -o:./bin/nimgrep tools/nimgrep.nim"
|
selfExec "c -o:./bin/nimgrep tools/nimgrep.nim"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue