2 # Generate sorted list of directories. The sorting is stable but with
3 # dependencies between directories resolved by moving dependees in front.
4 # (C) Copyright 1998 Free Software Foundation, Inc.
5 # Written by Ulrich Drepper <drepper@cygnus.com>, 1998.
23 for (i =
0; i
< dnt
; ++i
) {
24 for (j =
0; j
< cnt
; ++j
) {
25 if (all
[j
] == from
[i
]) {
26 for (k = j
+ 1; k
< cnt
; ++k
) {
27 if (all
[k
] == to
[i
]) {
32 for (l = k
- 1; l
>= j
; --l
) {
47 printf "sorted-subdirs = "
48 for (i =
0; i
< cnt
; ++i
) {