summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2015-05-03 18:50:05 +0200
committerAdam Strzelecki <ono@java.pl>2015-05-03 18:55:31 +0200
commite31bca55fae7e451a2da76fa0b64dec8562f9573 (patch)
tree1d8caedbcb1820fa81a4dbd5ef513c3060d857f4
parentca67687e3bf4bc71d4c2f68d9ac9aeac514f6d95 (diff)
downloadNim-e31bca55fae7e451a2da76fa0b64dec8562f9573.tar.gz
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.
-rw-r--r--.gitignore1
-rw-r--r--.gitmodules3
-rw-r--r--build.sh2
m---------csources0
4 files changed, 4 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index d804fb8f5..462df4efc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -41,4 +41,3 @@ xcuserdata/
 /testresults.html
 /testresults.json
 testament.db
-/csources/
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 000000000..26f35d82c
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "csources"]
+	path = csources
+	url = ../../nim-lang/csources.git
diff --git a/build.sh b/build.sh
index 139c28359..87e12dcfd 100644
--- a/build.sh
+++ b/build.sh
@@ -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"
diff --git a/csources b/csources
new file mode 160000
+Subproject 15724e2e1f3e7749d508dfcd995e84fea285080