diff options
author | Rob Landley | 2006-03-18 03:01:57 +0000 |
---|---|---|
committer | Rob Landley | 2006-03-18 03:01:57 +0000 |
commit | 6bc10635f8a907771532c91132de5e5a0fde5d41 (patch) | |
tree | 41ac3c2f765398c17dfdfa1ff41ae1eed404f37a /testsuite/testing.sh | |
parent | dcb2122e853ab4b82e0baf44f7110f16c7c74dc3 (diff) | |
download | busybox-6bc10635f8a907771532c91132de5e5a0fde5d41.zip busybox-6bc10635f8a907771532c91132de5e5a0fde5d41.tar.gz |
Make the new chroot environment creation infrastructure more flexible about
non-absolute paths.
Diffstat (limited to 'testsuite/testing.sh')
-rwxr-xr-x | testsuite/testing.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/testsuite/testing.sh b/testsuite/testing.sh index bec5976..19d93f5 100755 --- a/testsuite/testing.sh +++ b/testsuite/testing.sh @@ -110,13 +110,16 @@ function mkchroot shift for i in "$@" do - if [ "${i:0:1}" == "/" ] + [ "${i:0:1}" == "/" ] || i=$(which $i) + [ -f "$dest/$i" ] && continue + if [ -e "$i" ] then - [ -f "$dest/$i" ] && continue d=`echo "$i" | grep -o '.*/'` && mkdir -p "$dest/$d" && cat "$i" > "$dest/$i" && chmod +x "$dest/$i" + else + echo "Not found: $i" fi mkchroot "$dest" $(ldd "$i" | egrep -o '/.* ') done |