From 9e293badb0b5933ef05b60d981b10fc492ff5298 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 18 Sep 2013 16:08:48 +0200 Subject: [setup_target] Actually CHECK IF A REQUIRED LIBRARY IS THERE! --- remote/setup_target | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'remote/setup_target') 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}" -- cgit v1.2.3-55-g7522