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.
19 lines
238 B
Bash
19 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
|