]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Simplify the sorting command.
authorBruno Haible <bruno@clisp.org>
Mon, 8 Jan 2007 18:50:15 +0000 (18:50 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:36 +0000 (12:14 +0200)
autoconf-lib-link/m4/ChangeLog
autoconf-lib-link/m4/lib-link.m4

index a3d3e4856745bda3adf29983033e0e95e20065e2..5354ef06008994f200c0ebf78419d9879cd1df73 100644 (file)
@@ -1,3 +1,7 @@
+2007-01-08  Bruno Haible  <bruno@clisp.org>
+
+       * lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting command.
+
 2006-12-24  Bruno Haible  <bruno@clisp.org>
 
        Improve support for OpenBSD.
index 76503fef4c53350cfb6c20c977b0c148d1e317aa..4a77e68751f70d892c9afb1be5d8bc2af2b74c09 100644 (file)
@@ -1,5 +1,5 @@
-# lib-link.m4 serial 11 (gettext-0.16.2)
-dnl Copyright (C) 2001-2006 Free Software Foundation, Inc.
+# lib-link.m4 serial 12 (gettext-0.16.2)
+dnl Copyright (C) 2001-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -232,7 +232,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
                   ver=`(cd "$dir" && \
                         for f in "$libname$shrext".*; do echo "$f"; done \
                         | sed -e "s,^$libname$shrext\\\\.,," \
-                        | tr '.' ' ' | sort -n -r -k1 -k2 -k3 -k4 -k5 | tr ' ' '.' \
+                        | sort -t ',' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
                         | sed 1q ) 2>/dev/null`
                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
                     found_dir="$dir"
@@ -279,7 +279,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
                         ver=`(cd "$dir" && \
                               for f in "$libname$shrext".*; do echo "$f"; done \
                               | sed -e "s,^$libname$shrext\\\\.,," \
-                              | tr '.' ' ' | sort -n -r -k1 -k2 -k3 -k4 -k5 | tr ' ' '.' \
+                              | sort -t ',' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
                               | sed 1q ) 2>/dev/null`
                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
                           found_dir="$dir"