diff options
| author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-03-02 19:51:24 +0000 |
|---|---|---|
| committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-03-02 19:51:24 +0000 |
| commit | dfd21419719fbf00582ea850f6be8ad5524b4da7 (patch) | |
| tree | 15b56b3f4b561037773169f829689bf2d4013042 | |
| parent | 89071a002beb2045d1254fca2a86931f9afd54e9 (diff) | |
| download | uClibc-alpine-dfd21419719fbf00582ea850f6be8ad5524b4da7.tar.bz2 uClibc-alpine-dfd21419719fbf00582ea850f6be8ad5524b4da7.tar.xz | |
- add trailing slash (r24905 from trunk)
| -rwxr-xr-x | extra/scripts/relative_path.sh | 5 |
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,,"` |
