#!/bin/sh set -e set -x if [ ! -e csources/.git ]; then git clone --depth 1 https://github.com/nim-lang/csources.git csources fi cd "csources" sh build.sh cd ".." ./bin/nim c koch ./koch boot -d:release ./koch geninstall set +x echo echo 'Install Nim using "./install.sh " or "sudo ./install.sh ".'