From 70bdde44b1830522674bca85896862e85df768e7 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 28 Sep 2012 15:53:14 +0200 Subject: read build function --- remote/setup-tools.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'remote') diff --git a/remote/setup-tools.sh b/remote/setup-tools.sh index da42ad0b..15ef335d 100644 --- a/remote/setup-tools.sh +++ b/remote/setup-tools.sh @@ -32,6 +32,18 @@ read_config () . $TOOL_CONFIG } +read_build () +{ + BUILD_SCRIPT=$TOOL_DIR/$TOOL/build.$TOOL + + if [ ! -e $BUILD_SCRIPT ]; then + echo "ERROR: Build script for specified tool not found." + exit 1 + fi + + . $BUILD_SCRIPT +} + setup_git () { if [ ! -z "$GIT" ]; then @@ -67,6 +79,7 @@ main () { while (( "$#" )); do TOOL=$1 read_config + read_build install_dependencies fetch_source build -- cgit v1.2.3-55-g7522