Merge branch 'development'
[deb_libcec.git] / project / RPi / bootstrap.sh
CommitLineData
29104708
LOK
1#!/bin/bash
2
3_usage()
4{
5 echo "Usage: $0 /path/to/toolchain /source/path"
6 exit 1
7}
8
9if [[ -z "$2" || ! -d "$1" || ! -d "$2" ]]; then
10 echo "1 = '$1'"
11 echo "2 = '$2'"
12 _usage
13fi
14
15SCRIPT_PATH=`dirname $0`
16cd $SCRIPT_PATH
17SCRIPT_PATH=`pwd`
18cd -
19
20source $SCRIPT_PATH/config
21mkdir -p $SCRIPT_PATH/deps
22
23cd "$2"
24
25if [ -f "configure.ac" ]; then
26 _set_toolchain_path "$1"
27 autoreconf -vif
28 exit $?
29fi
30
31exit 0
32