summaryrefslogtreecommitdiffstats
path: root/remote/setup_target
diff options
context:
space:
mode:
authorSimon Rettberg2015-09-14 23:03:07 +0200
committerSimon Rettberg2015-09-14 23:03:07 +0200
commit0711aea3659175fb88ddf1004108c588e338bcd8 (patch)
treecb1d0f60a53b1c0f9d0bd71cdf53e6c7061255c2 /remote/setup_target
parent[vmware] ethernet0.addressType = "static" added (parse_vmx.inc) (diff)
downloadtm-scripts-0711aea3659175fb88ddf1004108c588e338bcd8.tar.gz
tm-scripts-0711aea3659175fb88ddf1004108c588e338bcd8.tar.xz
tm-scripts-0711aea3659175fb88ddf1004108c588e338bcd8.zip
[binutil] Try harder not to be stupid (whats broken this time?)
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-xremote/setup_target2
1 files changed, 2 insertions, 0 deletions
diff --git a/remote/setup_target b/remote/setup_target
index 91e657e0..63869979 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -211,10 +211,12 @@ copy_files_with_deps () {
local ENTRY=""
for ENTRY in ${REQUIRED_DIRECTORIES}; do
[[ "$ENTRY" == /* ]] || perror "All entries in REQUIRED_DIRECTORIES have to start with a slash '/', but $ENTRY does not!"
+ [ -e "$ENTRY" -a ! -d "$ENTRY" ] && perror "$ENTRY is not a directory"
pdebug "* $ENTRY"
ENTRY=".${ENTRY}"
echo "${ENTRY}" >> "${COPYFILES_LIST}"
for BIN in $(find "${ENTRY}" -type f -a \( -executable -o -name '*.so*' \) -a -not -name '*.a'); do
+ [ -f "$BIN" ] || continue
#pdebug "\tSearching libs for ${BIN}..."
get_link_chain "${MODULE_BUILD_DIR}/${BIN}" "${MODULE_BUILD_DIR}" >> "${COPYFILES_LIST}"
get_dynamic_dependencies -l "${MODULE_BUILD_DIR}" "${BIN}" >> "${COPYFILES_LIST}"