* scripts/versions.awk: Don't pass -n flag to sort command.
authorRoland McGrath <roland@gnu.org>
Mon, 2 Dec 2002 06:31:28 +0000 (06:31 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 2 Dec 2002 06:31:28 +0000 (06:31 +0000)
ChangeLog
scripts/versions.awk

index bae9bd3..a70384b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2002-12-01  Roland McGrath  <roland@redhat.com>
 
+       * scripts/versions.awk: Don't pass -n flag to sort command.
+
        * posix/bug-regex13.c: Include <string.h>.
 
        * sysdeps/generic/libc-start.c (__libc_start_main): Do
index 785380a..7e33387 100644 (file)
@@ -26,7 +26,10 @@ BEGIN {
   close(defsfile);
 
   tmpfile = buildroot "Versions.tmp";
-  sort = "sort -n > " tmpfile;
+  # Note this sorting presumes only single digits between dots for proper
+  # numeric ordering.  sort -n doesn't do quite the right thing either,
+  # and in some non-GNU sort implementations does not sort at all.
+  sort = "sort > " tmpfile;
 }
 
 # Remove comment lines.