svn commit: branches/uClibc-nptl/extra/scripts

vda at uclibc.org vda at uclibc.org
Mon Jan 19 03:20:04 UTC 2009


Author: vda
Date: 2009-01-19 03:20:03 +0000 (Mon, 19 Jan 2009)
New Revision: 24906

Log:
extra/scripts/relative_path.sh: fix it



Modified:
   branches/uClibc-nptl/extra/scripts/relative_path.sh


Changeset:
Modified: branches/uClibc-nptl/extra/scripts/relative_path.sh
===================================================================
--- branches/uClibc-nptl/extra/scripts/relative_path.sh	2009-01-19 03:19:43 UTC (rev 24905)
+++ branches/uClibc-nptl/extra/scripts/relative_path.sh	2009-01-19 03:20:03 UTC (rev 24906)
@@ -33,7 +33,10 @@
   ;;
 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,,"`



More information about the uClibc-cvs mailing list