Commit | Line | Data |
---|---|---|
cbbe90dd JB |
1 | #!/bin/bash |
2 | ||
3 | SCRIPT_PATH=`dirname $0` | |
4 | cd $SCRIPT_PATH | |
5 | SCRIPT_PATH=`pwd` | |
6 | cd - | |
7 | ||
8 | source $SCRIPT_PATH/config | |
9 | ||
10 | if [ ! -d $SCRIPT_PATH/toolchain ]; then | |
11 | git clone $TOOLCHAIN_GIT $SCRIPT_PATH/toolchain | |
12 | else | |
13 | cd $SCRIPT_PATH/toolchain | |
14 | # git pull | |
15 | fi | |
16 | ||
17 | if [ ! -d $SCRIPT_PATH/firmware ]; then | |
18 | git clone $FIRMWARE_GIT $SCRIPT_PATH/firmware | |
19 | else | |
20 | cd $SCRIPT_PATH/firmware | |
21 | # git pull | |
22 | fi | |
23 | ||
24 | if [[ -d $SCRIPT_PATH/toolchain && -d $SCRIPT_PATH/firmware ]]; then | |
25 | exit 0 | |
26 | else | |
27 | exit 1 | |
28 | fi | |
29 |