Skip to content

Commit

Permalink
Add c-deps as submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
gdiazlo committed Mar 14, 2019
1 parent f230aa9 commit 1abf0b6
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
[submodule "github.com/facebook/rocksdb"]
path = c-deps/rocksdb
url = https://github.com/facebook/rocksdb.git
[submodule "github.com/google/snappy"]
path = c-deps/snappy
url = https://github.com/google/snappy.git
[submodule "github.com/lz4/lz4"]
path = c-deps/lz4
url = https://github.com/lz4/lz4.git
[submodule "github.com/enthought/bzip2-1.0.6"]
path = c-deps/bzip2
url = https://github.com/enthought/bzip2-1.0.6.git
[submodule "github.com/facebook/zstd"]
path = c-deps/zstd
url = https://github.com/facebook/zstd.git
[submodule "github.com/madler/zlib"]
path = c-deps/zlib
url = https://github.com/madler/zlib.git

1 change: 1 addition & 0 deletions c-deps/bzip2
Submodule bzip2 added at 288acf
11 changes: 11 additions & 0 deletions c-deps/gitsubmodules.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

set -e

git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |
while read path_key path
do
url_key=$(echo $path_key | sed 's/\.path/.url/')
url=$(git config -f .gitmodules --get "$url_key")
git submodule add $url $path
done
1 change: 1 addition & 0 deletions c-deps/lz4
Submodule lz4 added at 641b45
1 change: 1 addition & 0 deletions c-deps/zlib
Submodule zlib added at 2fa463
1 change: 1 addition & 0 deletions c-deps/zstd
Submodule zstd added at a174fb

0 comments on commit 1abf0b6

Please sign in to comment.