]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
bootstrap: push Peter's version sort fix back into funclib.sh.
authorGary V. Vaughan <gary@gnu.org>
Thu, 2 Jan 2014 00:04:31 +0000 (13:04 +1300)
committerGary V. Vaughan <gary@gnu.org>
Thu, 2 Jan 2014 00:04:31 +0000 (13:04 +1300)
Peter's a7462c5 fix was applied to the generated bootstrap script
instead of the funclib.sh source, and had have been overwritten
the next time bootstrap was regenerated.
* gl/build-aux/funclib.sh (func_sort_ver): Sort numerically on the
non-primary keys as well.
* bootstrap: Regenerate, with the change applied.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
bootstrap
gl/build-aux/funclib.sh

index 6b4cc6d5a72cdf96c2b7821dc3f533287f1f07ae..18323ebb4878c8d4de8a116276d39c3b98441559 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -1327,8 +1327,8 @@ func_sort_ver ()
 {
     $debug_cmd
 
-    printf '%s\n%s\n' "$1" "$2" |
-    sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n
+    printf '%s\n%s\n' "$1" "$2" \
+      | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n
 }
 
 # func_lt_ver PREV CURR
index 73b3e26373ceedfadbc3b87191773e67d5f8b1e4..3bd2ab8a5ef02eff9946639d059cc212a20ad58a 100644 (file)
@@ -1317,8 +1317,8 @@ func_sort_ver ()
 {
     $debug_cmd
 
-    printf '%s\n%s\n' "$1" "$2" |
-    sort -t. -k1n -k1 -k2n -k2 -k3n -k3 -k4n -k4 -k5n -k5 -k6n -k6 -k7n -k7 -k8n -k8 -k9n -k9
+    printf '%s\n%s\n' "$1" "$2" \
+      | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n
 }
 
 # func_lt_ver PREV CURR