mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 00:31:08 +00:00
581c785bf3
I used these shell commands: ../glibc/scripts/update-copyrights $PWD/../gnulib/build-aux/update-copyright (cd ../glibc && git commit -am"[this commit message]") and then ignored the output, which consisted lines saying "FOO: warning: copyright statement not found" for each of 7061 files FOO. I then removed trailing white space from math/tgmath.h, support/tst-support-open-dev-null-range.c, and sysdeps/x86_64/multiarch/strlen-vec.S, to work around the following obscure pre-commit check failure diagnostics from Savannah. I don't know why I run into these diagnostics whereas others evidently do not. remote: *** 912-#endif remote: *** 913: remote: *** 914- remote: *** error: lines with trailing whitespace found ... remote: *** error: sysdeps/unix/sysv/linux/statx_cp.c: trailing lines
46 lines
695 B
Awk
46 lines
695 B
Awk
#!/usr/bin/awk -f
|
|
# Generate topologically sorted list of manual chapters.
|
|
# Copyright (C) 1998-2022 Free Software Foundation, Inc.
|
|
|
|
BEGIN {
|
|
cnt = 0
|
|
dnt = 0
|
|
}
|
|
{
|
|
to[dnt] = $1
|
|
from[dnt] = $2
|
|
++dnt
|
|
all[cnt++] = $1
|
|
}
|
|
END {
|
|
do {
|
|
moved = 0
|
|
for (i = 0; i < dnt; ++i) {
|
|
for (j = 0; j < cnt; ++j) {
|
|
if (all[j] == from[i]) {
|
|
for (k = j + 1; k < cnt; ++k) {
|
|
if (all[k] == to[i]) {
|
|
break;
|
|
}
|
|
}
|
|
if (k < cnt) {
|
|
for (l = k - 1; l >= j; --l) {
|
|
all[l + 1] = all[l]
|
|
}
|
|
all[j] = to[i]
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
if (j < cnt) {
|
|
moved = 1
|
|
break
|
|
}
|
|
}
|
|
} while (moved)
|
|
|
|
for (i = 0; i < cnt; ++i) {
|
|
print all[i];
|
|
}
|
|
}
|