summaryrefslogtreecommitdiffstats
path: root/remote/setup_target
diff options
context:
space:
mode:
authorSimon Rettberg2013-09-18 16:08:48 +0200
committerJonathan Bauer2013-09-30 13:26:31 +0200
commit9e293badb0b5933ef05b60d981b10fc492ff5298 (patch)
treee8bb67eb517b090c9754bf6e7b41c6b8d6b4a980 /remote/setup_target
parent...better yet, make it optional (diff)
downloadtm-scripts-9e293badb0b5933ef05b60d981b10fc492ff5298.tar.gz
tm-scripts-9e293badb0b5933ef05b60d981b10fc492ff5298.tar.xz
tm-scripts-9e293badb0b5933ef05b60d981b10fc492ff5298.zip
[setup_target] Actually CHECK IF A REQUIRED LIBRARY IS THERE!
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-xremote/setup_target10
1 files changed, 5 insertions, 5 deletions
diff --git a/remote/setup_target b/remote/setup_target
index 00a182f3..2f4d6e37 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -178,11 +178,11 @@ copy_files_with_deps () {
done
done
- [ ! -z "${REQUIRED_LIBRARIES}" ] && pinfo "Gathering required libraries from config file..."
- for LIB in ${REQUIRED_LIBRARIES}
- do
- for LOCATION in $(find . -name ${LIB}.so\*)
- do
+ [ ! -z "$REQUIRED_LIBRARIES" ] && pinfo "Gathering required libraries from config file..."
+ for LIB in $REQUIRED_LIBRARIES; do
+ FILE_CANDIDATES=$(find . -name "${LIB}.so*")
+ [ -z "$FILE_CANDIDATES" ] && perror "Cannot find required library $LIB"
+ for LOCATION in $FILE_CANDIDATES; do
pdebug "* $LOCATION"
strip "$LOCATION" || pwarning "Could not strip '${LOCATION}'"
get_link_chain "${MODULE_BUILD_DIR}/${LOCATION}" "${MODULE_BUILD_DIR}" >> "${COPYFILES_LIST}"