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