mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
23 lines
321 B
Bash
23 lines
321 B
Bash
#!/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
|