projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcb2122
)
Make the new chroot environment creation infrastructure more flexible about
author
Rob Landley
<rob@landley.net>
Sat, 18 Mar 2006 03:01:57 +0000
(
03:01
-0000)
committer
Rob Landley
<rob@landley.net>
Sat, 18 Mar 2006 03:01:57 +0000
(
03:01
-0000)
non-absolute paths.
testsuite/testing.sh
patch
|
blob
|
history
diff --git
a/testsuite/testing.sh
b/testsuite/testing.sh
index bec5976e1e4439befc076e323a6496d7f66adf00..19d93f5a8058368309fbc8ff3400cf91acd9af60 100755
(executable)
--- 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