summary refs log tree commit diff stats
path: root/install_tools.nims
blob: f5f320f78af67bbc9a4f4a686781c0f603138c61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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"