summaryrefslogtreecommitdiffstats
path: root/scripts/install_copy_toolchain.sh
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-02-12 14:34:51 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-02-16 17:43:07 +0100
commitce76def5492685f0efde19460fe0b1f355ac60f9 (patch)
treed587281f6cf808fb7a34e1af55fad1b1ad73de51 /scripts/install_copy_toolchain.sh
parent989c4db5c7b79941d72c1b33523697d699eeb2a3 (diff)
downloadptxdist-ce76def5492685f0efde19460fe0b1f355ac60f9.tar.gz
ptxdist-ce76def5492685f0efde19460fe0b1f355ac60f9.tar.xz
[install] fix return values
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/install_copy_toolchain.sh')
-rwxr-xr-xscripts/install_copy_toolchain.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/install_copy_toolchain.sh b/scripts/install_copy_toolchain.sh
index 8bfa49061..84687181a 100755
--- a/scripts/install_copy_toolchain.sh
+++ b/scripts/install_copy_toolchain.sh
@@ -58,14 +58,14 @@ ptxd_get_lib_path() {
lib_path="$(${CC} -print-file-name=${lib})"
if test "${lib_path}" = "${lib}"; then
echo "install_copy_toolchain_lib: ${lib} not found" >&2
- return -1
+ return 1
fi
# let the shell canonicalized the path
lib_dir="$(cd ${lib_path%/${lib}} && echo $PWD)"
if test \! -d "${lib_dir}"; then
echo "install_copy_toolchain_lib: ${lib_dir} not found" >&2
- return -1
+ return 1
fi
echo "${lib_dir}/${lib}"
@@ -266,7 +266,7 @@ ptxd_install_toolchain_lib() {
fi
else
echo "error: found ${lib_path}, but neither file nor link" 2>&1
- return -1
+ return 1
fi
return 0
@@ -335,6 +335,7 @@ ptxd_install_toolchain_usr() {
if test -z "$(find ${sysroot_usr} -path "${sysroot_usr}/${usr}" -a \! -type d)"; then
echo "file ${usr} not found"
+ return 1
fi
find ${sysroot_usr} -path "${sysroot_usr}/${usr}" -a \! -type d | while read usr_src; do