aboutsummaryrefslogtreecommitdiff
path: root/scripts/versions.awk
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-12-06 02:13:20 +0000
committerUlrich Drepper <drepper@redhat.com>2008-12-06 02:13:20 +0000
commit8680179fdbaa69ba5c3d6056adf32c68d98e171a (patch)
treeb3d4087f34cf4508a1088532d80d5e6c256b3541 /scripts/versions.awk
parent71885b7a9149b5e54906204491b64d5ad0a48e9d (diff)
downloadglibc-8680179fdbaa69ba5c3d6056adf32c68d98e171a.tar
glibc-8680179fdbaa69ba5c3d6056adf32c68d98e171a.tar.gz
glibc-8680179fdbaa69ba5c3d6056adf32c68d98e171a.tar.bz2
glibc-8680179fdbaa69ba5c3d6056adf32c68d98e171a.zip
2008-12-05 Joseph Myers <joseph@codesourcery.com>
Ulrich Drepper <drepper@redhat.com> * scripts/firstversion.awk: Use custom comparison function to compare version numbers. * scripts/versions.awk: Use sort invocation which can handle multi-digit sub-version numbers.
Diffstat (limited to 'scripts/versions.awk')
-rw-r--r--scripts/versions.awk8
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/versions.awk b/scripts/versions.awk
index e642b3d16e..22b1c8edc8 100644
--- a/scripts/versions.awk
+++ b/scripts/versions.awk
@@ -28,10 +28,8 @@ BEGIN {
close(defsfile);
tmpfile = buildroot "Versions.tmp";
- # 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;
+ # POSIX sort needed.
+ sort = "sort -t. -k 1,1 -k 2n,2n -k 3 > " tmpfile;
}
# Remove comment lines.
@@ -135,5 +133,5 @@ END {
printf("\n");
closeversion(oldver, veryoldver);
close_and_move(outfile, real_outfile);
- system("rm -f " tmpfile);
+ #system("rm -f " tmpfile);
}