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
|
||||
|
||||
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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue