diff options
Diffstat (limited to 'install_tools.nims')
-rw-r--r-- | install_tools.nims | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/install_tools.nims b/install_tools.nims new file mode 100644 index 000000000..f5f320f78 --- /dev/null +++ b/install_tools.nims @@ -0,0 +1,20 @@ + +import ospaths + +mode = ScriptMode.Verbose + +echo "This script is deprecated. Use 'koch tools' instead." + +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 -d:release -p:compiler -o:" & nimsugExe & + " dist/nimsuggest/nimsuggest.nim" + + let nimgrepExe = "./bin/nimgrep".toExe + selfExec "c -d:release -o:" & nimgrepExe & " tools/nimgrep.nim" |