summary refs log tree commit diff stats
path: root/bootstrap.sh
blob: 7f19c24406a8610fdf53d044b575a07ab73c43a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
set -e
set -x

if [ ! -e csources/.git ]; then
	git clone --depth 1 git://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 <dir>" or "sudo ./install.sh <dir>".'

exit 0