summary refs log blame commit diff stats
path: root/bootstrap.sh
blob: 5d05ddbf8a873c4f99a888f02f48489bdfd47582 (plain) (tree)
1
2
3
4
5
6



         
                               
                                                                             







                      
                 
 



                                                                           
#!/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 <dir>" or "sudo ./install.sh <dir>".'