aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-15 07:01:16 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-15 07:01:16 +0000
commitda6d7d3838176cd8a3734e9f9edcdbda84d91df1 (patch)
tree26c48aa77035ada9a06ab7b352d8d585641acc29 /scripts
parentcd4c4a2cd674ed8c15f5ec296c76693b60c67b14 (diff)
downloadglibc-da6d7d3838176cd8a3734e9f9edcdbda84d91df1.tar
glibc-da6d7d3838176cd8a3734e9f9edcdbda84d91df1.tar.gz
glibc-da6d7d3838176cd8a3734e9f9edcdbda84d91df1.tar.bz2
glibc-da6d7d3838176cd8a3734e9f9edcdbda84d91df1.zip
Update.
* scripts/versions.awk: Don't expect to read predecessor versions, compute them. * Versions.def: Remove predecessors. They get now computed. 1999-11-14 Ulrich Drepper <drepper@cygnus.com> Patches by Franz Sirl <Franz.Sirl@lauterbach.com>.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/versions.awk18
1 files changed, 7 insertions, 11 deletions
diff --git a/scripts/versions.awk b/scripts/versions.awk
index 49f449cdea..78ed73914b 100644
--- a/scripts/versions.awk
+++ b/scripts/versions.awk
@@ -17,12 +17,6 @@ BEGIN {
curlib = $1;
while (getline < defsfile && ! /^}/) {
versions[$1] = 1;
- if (NF > 1) {
- derived[curlib, $1] = " " $2;
- for (n = 3; n <= NF; ++n) {
- derived[curlib, $1] = derived[curlib, $1] ", " $n;
- }
- }
}
}
}
@@ -65,12 +59,12 @@ BEGIN {
}
-function closeversion(name) {
+function closeversion(name, oldname) {
if (firstinfile) {
printf(" local:\n *;\n") > outfile;
firstinfile = 0;
}
- printf("}%s;\n", derived[oldlib, name]) > outfile;
+ printf("}%s;\n", oldname) > outfile;
}
function close_and_move(name, real_name) {
@@ -87,7 +81,7 @@ END {
while(getline < tmpfile) {
if ($1 != oldlib) {
if (oldlib != "") {
- closeversion(oldver);
+ closeversion(oldver, veryoldver);
oldver = "";
close_and_move(outfile, real_outfile);
}
@@ -95,11 +89,13 @@ END {
real_outfile = buildroot oldlib ".map";
outfile = real_outfile "T";
firstinfile = 1;
+ veryoldver = "";
printf(" %s.map", oldlib);
}
if ($2 != oldver) {
if (oldver != "") {
- closeversion(oldver);
+ closeversion(oldver, veryoldver);
+ veryoldver = oldver;
}
printf("%s {\n global:\n", $2) > outfile;
oldver = $2;
@@ -111,7 +107,7 @@ END {
printf("\n") > outfile;
}
printf("\n");
- closeversion(oldver);
+ closeversion(oldver, veryoldver);
close_and_move(outfile, real_outfile);
system("rm -f " tmpfile);
}