summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2013-02-01 17:39:11 +0100
committerJonathan Bauer2013-02-01 17:39:11 +0100
commit632caad748a3b4aec50c29c70fb16ca54212cfa9 (patch)
tree7996d8378b45ec8866ddfdb6f151effdc29efcc3
parentfixes (diff)
downloadtm-scripts-632caad748a3b4aec50c29c70fb16ca54212cfa9.tar.gz
tm-scripts-632caad748a3b4aec50c29c70fb16ca54212cfa9.tar.xz
tm-scripts-632caad748a3b4aec50c29c70fb16ca54212cfa9.zip
[base] follow symlinks for binaries
-rw-r--r--remote/tools/base/base.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/remote/tools/base/base.build b/remote/tools/base/base.build
index 2a1a811c..91cbfa3f 100644
--- a/remote/tools/base/base.build
+++ b/remote/tools/base/base.build
@@ -16,7 +16,9 @@ build() {
for BIN in ${REQUIRED_BINARIES}
do
- echo $(which ${BIN}) >> ${FILELIST}
+ BIN_LOCATION=$(which ${BIN})
+ [ -e ${BIN_LOCATION} ] && echo ${BIN_LOCATION} >> ${FILELIST}
+ [ -L ${BIN_LOCATION} ] && echo $(readlink ${BIN_LOCATION}) >> ${FILELIST}
done
for LIB in ${REQUIRED_LIBRARIES}