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