diff options
author | Jonathan Bauer | 2012-09-28 16:08:57 +0200 |
---|---|---|
committer | Jonathan Bauer | 2012-09-28 16:08:57 +0200 |
commit | 058c4be94794f410dce4314f4df04c69246ada3b (patch) | |
tree | f1653bd1c599bd6e14764bcafb4dcf883a6f41c6 /remote/setup-tools.sh | |
parent | readded configs... (diff) | |
download | tm-scripts-058c4be94794f410dce4314f4df04c69246ada3b.tar.gz tm-scripts-058c4be94794f410dce4314f4df04c69246ada3b.tar.xz tm-scripts-058c4be94794f410dce4314f4df04c69246ada3b.zip |
minor
Diffstat (limited to 'remote/setup-tools.sh')
-rw-r--r-- | remote/setup-tools.sh | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/remote/setup-tools.sh b/remote/setup-tools.sh index 9cc35362..ecfc7bac 100644 --- a/remote/setup-tools.sh +++ b/remote/setup-tools.sh @@ -20,6 +20,14 @@ fi TOOL_DIR=$ROOT_DIR/tools INIT_DIR=$ROOT_DIR/initramfs +setup_git () +{ + if [ ! -z "$GIT" ]; then + GIT_BIN=$(which git) + [ -z "$GIT_BIN" ] && echo "Installing git..." && apt-get install git + fi +} + read_config () { TOOL_CONFIG=$TOOL_DIR/$TOOL/$TOOL.conf @@ -44,17 +52,11 @@ read_build () . $BUILD_SCRIPT } -setup_git () -{ - if [ ! -z "$GIT" ]; then - GIT_BIN=$(which git) - [ -z "$GIT_BIN" ] && echo "Installing git..." && apt-get install git - fi -} - copyfileswithdependencies () { - cd $VERSION/tmp + [ ! -d $TOOL_DIR/$TOOL/build ] && echo "No build directory for $TOOL found." && return + + cd build COPYFILES_LIST="copyfiles.list" for FILENAME in $REQUIRED_BINARIES @@ -72,7 +74,7 @@ copyfileswithdependencies () echo "$filename_path/$filename_base*" >> $COPYFILES_LIST done #copy to initramfsdir - tar -cpv $(cat $COPYFILES_LIST) | tar -xpv -C $INSTALL_DIR + tar -cpv $(cat $COPYFILES_LIST) | tar -xpv -C $INIT_DIR done } |