svn commit: trunk/uClibc/extra/scripts

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


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

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



Modified:
   trunk/uClibc/extra/scripts/relative_path.sh


Changeset:
Modified: trunk/uClibc/extra/scripts/relative_path.sh
===================================================================
--- trunk/uClibc/extra/scripts/relative_path.sh	2009-01-18 23:00:26 UTC (rev 24904)
+++ trunk/uClibc/extra/scripts/relative_path.sh	2009-01-19 03:19:43 UTC (rev 24905)
@@ -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