summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-03-02 19:51:24 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-03-02 19:51:24 +0000
commitdfd21419719fbf00582ea850f6be8ad5524b4da7 (patch)
tree15b56b3f4b561037773169f829689bf2d4013042
parent89071a002beb2045d1254fca2a86931f9afd54e9 (diff)
downloaduClibc-alpine-dfd21419719fbf00582ea850f6be8ad5524b4da7.tar.bz2
uClibc-alpine-dfd21419719fbf00582ea850f6be8ad5524b4da7.tar.xz
- add trailing slash (r24905 from trunk)
-rwxr-xr-xextra/scripts/relative_path.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/extra/scripts/relative_path.sh b/extra/scripts/relative_path.sh
index c859646a4..4dddefac1 100755
--- a/extra/scripts/relative_path.sh
+++ b/extra/scripts/relative_path.sh
@@ -33,7 +33,10 @@ case $from in
;;
esac
-prefix=`echo $from///$target | sed 's,\(\(/[^/]*\)*\).*///\1.*,\1,'`
+# Without trailing slash, from=/usr/lib and target=/uclibc/lib
+# mistakenly concludes that prefix=/u
+#prefix=`echo $from///$target | sed 's,\(\(/[^/]*\)*\).*///\1.*,\1,'`
+prefix=`echo $from///$target | sed 's,\(\(/[^/]*\)*/\).*///\1.*,\1,'`
dots=`echo $prefix | sed s,.,.,g`
from=`echo $from | sed "s,^$dots,,"`
target=`echo $target | sed "s,^$dots,,"`