Files
Nim/build.sh
Adam Strzelecki e31bca55fa Make csources a submodule
1. Solves a problem that updating Nim sources we have no indication we need to
   update csources as well.

2. Using submodule we can explicitly request that some Nim version requires
   some csources version to bootstrap.

3. build.sh now simply calls: git submodule update --init --depth 1
   instead shallow clone on missing csources subdirectory.
2015-05-03 18:55:31 +02:00

20 lines
238 B
Bash

#!/bin/sh
set -e
set -x
if [ ! -d "csources" ]; then
git submodule update --init --depth 1
fi
cd "csources"
sh build.sh
cd ".."
./bin/nim c koch
./koch boot -d:release
cp -f install.sh.template install.sh
chmod +x install.sh
exit 0