2009-11-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Fix func_normal_abspath sed script for Solaris.
+ * libltdl/config/general.m4sh (pathcar, pathcdr, removedotparts)
+ (collapseslashes, finalslash): Use single quotes, for clarity.
+ (removedotparts): Avoid \{N,M\} after subexpression \(...\), for
+ Solaris /bin/sed.
+
Improve versioning algorithm documentation.
* doc/libtool.texi (Updating version info): Repeat the
algorithms in different, hopefully simpler terms.
# Generated shell functions inserted here.
# These SED scripts presuppose an absolute path with a trailing slash.
-pathcar="s,^/\([^/]*\).*$,\1,"
-pathcdr="s,^/[^/]*,,"
-removedotparts="s@/\(\./\)\{1,\}@/@g;s,/\.$,/,"
-collapseslashes="s@/\{1,\}@/@g"
-finalslash="s,/*$,/,"
+pathcar='s,^/\([^/]*\).*$,\1,'
+pathcdr='s,^/[^/]*,,'
+removedotparts=':dotsl
+ s@/\./@/@g
+ t dotsl
+ s,/\.$,/,'
+collapseslashes='s@/\{1,\}@/@g'
+finalslash='s,/*$,/,'
# func_normal_abspath PATH
# Remove doubled-up and trailing slashes, "." path components,