diff options
| author | Simon Rettberg | 2013-09-18 16:08:48 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2013-09-18 16:08:48 +0200 |
| commit | 9b46a91b836e5a0aae6772ece7c295fcc4bbe302 (patch) | |
| tree | 5cf87f12cd1568ca3e8db7a50344be1840d27d01 /remote | |
| parent | ...better yet, make it optional (diff) | |
| download | tm-scripts-9b46a91b836e5a0aae6772ece7c295fcc4bbe302.tar.gz tm-scripts-9b46a91b836e5a0aae6772ece7c295fcc4bbe302.tar.xz tm-scripts-9b46a91b836e5a0aae6772ece7c295fcc4bbe302.zip | |
[setup_target] Actually CHECK IF A REQUIRED LIBRARY IS THERE!
Diffstat (limited to 'remote')
| -rwxr-xr-x | remote/setup_target | 10 |
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}" |
