-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·31 lines (24 loc) · 797 Bytes
/
setup.sh
File metadata and controls
executable file
·31 lines (24 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
function print () {
echo "[install]: $1"
}
PROJECT_PATH=$(pwd)
# create private library paths
mkdir -p ../lib
# clone private dependencies into lib
function install_dependencies () {
DEP_PATH=$1
REPO_PATH=$2
if [ ! -d "$DEP_PATH" ];
then
print "missing $DEP_PATH, install from source"
git clone ${REPO_PATH} ${DEP_PATH}
else
print "skip installing already existing dependency $DEP_PATH"
fi
}
print "install dependencies"
install_dependencies "../lib/corelib" "https://github.com/leaonline/corelib"
install_dependencies "../lib/utils" "https://github.com/leaonline/utils"
install_dependencies "../lib/theme" "https://github.com/leaonline/theme"
install_dependencies "../lib/testing" "https://github.com/leaonline/testing"