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.
This commit is contained in:
Adam Strzelecki
2015-05-03 18:50:05 +02:00
parent ca67687e3b
commit e31bca55fa
4 changed files with 5 additions and 2 deletions

1
.gitignore vendored
View File

@@ -41,4 +41,3 @@ xcuserdata/
/testresults.html
/testresults.json
testament.db
/csources/

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "csources"]
path = csources
url = ../../nim-lang/csources.git

View File

@@ -3,7 +3,7 @@ set -e
set -x
if [ ! -d "csources" ]; then
git clone --depth 1 https://github.com/nim-lang/csources.git
git submodule update --init --depth 1
fi
cd "csources"

1
csources Submodule

Submodule csources added at 15724e2e1f