mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 18:32:11 +00:00
We actually need to check for existence of csources/.git and then do git submodule update --init, which pulls the data for submodule.
20 lines
241 B
Bash
Executable File
20 lines
241 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
set -x
|
|
|
|
if [ ! -e csources/.git ]; 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
|