Skip to content
This repository was archived by the owner on May 24, 2018. It is now read-only.

use git submodule manage the dependency #214

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ test*
*.conf
Local*
bin
mshadow
config.mk
layer.h
layer_impl-inl.hpp
Expand All @@ -14,10 +13,7 @@ im2bin
*.pyc
example
*.log
ps-lite
dmlc-core
bin
rabit
*.opensdf
*.sdf
*.pdb
Expand All @@ -26,4 +22,4 @@ rabit
*.deps
*.cache
*state
*build
*build
12 changes: 12 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[submodule "rabit"]
path = rabit
url = https://github.com/dmlc/rabit.git
[submodule "mshadow"]
path = mshadow
url = https://github.com/dmlc/mshadow.git
[submodule "dmlc-core"]
path = dmlc-core
url = https://github.com/dmlc/dmlc-core.git
[submodule "ps-lite"]
path = ps-lite
url = https://github.com/dmlc/ps-lite.git
12 changes: 0 additions & 12 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
#! /bin/bash

if [ ! -d mshadow ]; then
git clone https://github.com/dmlc/mshadow.git
fi

if [ ! -d rabit ]; then
git clone https://github.com/dmlc/rabit.git
fi

if [ ! -d dmlc-core ]; then
git clone https://github.com/dmlc/dmlc-core.git
fi


if [ ! -f config.mk ]; then
echo "Use the default config.m"
Expand Down
13 changes: 0 additions & 13 deletions build_ps.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
#! /bin/bash

if [ ! -d ps-lite ]; then
git clone https://github.com/dmlc/ps-lite
echo "Install third-party libraries for PS"
./ps-lite/make/install_deps.sh 1>install_ps.log
echo "Compile PS"
make -j 4 -C ps-lite
fi

if [ ! -d rabit ]; then
git clone https://github.com/dmlc/rabit.git
fi

if [ ! -d mshadow ]; then
git clone https://github.com/dmlc/mshadow.git
fi

if [ ! -d dmlc-core ]; then
git clone https://github.com/dmlc/dmlc-core.git
fi

if [ ! -f config.mk ]; then
echo "Use the default config.m"
cp make/config.mk config.mk
Expand Down
1 change: 1 addition & 0 deletions dmlc-core
Submodule dmlc-core added at 12efe5
1 change: 1 addition & 0 deletions mshadow
Submodule mshadow added at 70548b
1 change: 1 addition & 0 deletions ps-lite
Submodule ps-lite added at c6e812
1 change: 1 addition & 0 deletions rabit
Submodule rabit added at e0b7da