1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

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.
This commit is contained in:
Ulrich Drepper
2008-12-06 02:13:20 +00:00
parent 71885b7a91
commit 8680179fdb
5 changed files with 223 additions and 9 deletions

View File

@ -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);
}