summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-05-07 22:17:05 +0200
committerAndreas Rumpf <rumpf_a@web.de>2015-05-07 22:17:05 +0200
commita490e13342eb9e43bfc5aed607ff37efd9b26420 (patch)
treed95a538ba34bb8177d407a3276135e1aa5d98485
parent22c9b893925b6296848d2e7c0acbe829a85925b7 (diff)
parent05e072b8c48d05a1bed1a4ccb69a79c22f0d7821 (diff)
downloadNim-a490e13342eb9e43bfc5aed607ff37efd9b26420.tar.gz
Merge pull request #2649 from nanoant/patch/csources-as-submodule
Patch/csources as submodule
-rw-r--r--.gitignore1
-rw-r--r--.gitmodules3
-rwxr-xr-x[-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..100755
--- 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