Skip to content

Commit be92a87

Browse files
committed
Fix PHP_ADD_EXTENSION_DEP without indentation
Adjust FS in order_by_dep.awk to only each whitespace around (,) rather than any whitespace. Thus a leading indent does not result in a separate element.
1 parent 52a72e2 commit be92a87

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build/order_by_dep.awk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ function get_deps(module_name, module_dir, depline, cmd)
1010
{
1111
# this could probably be made *much* better
1212
RS=orig_rs;
13-
FS="[(,) \t]+"
13+
FS="[ \t]*[(,)][ \t]*"
1414
cmd = "grep PHP_ADD_EXTENSION_DEP " module_dir "/config*.m4"
1515
while (cmd | getline) {
16-
# printf("GOT: %s,%s,%s,%s,%s\n", $1, $2, $3, $4, $5);
17-
if (!length($5)) {
18-
$5 = 0;
16+
#printf("GOT: %s,%s,%s,%s\n", $1, $2, $3, $4);
17+
if (!length($4)) {
18+
$4 = 0;
1919
}
20-
mod_deps[module_name, $4] = $5;
20+
mod_deps[module_name, $3] = $4;
2121
}
2222
close(cmd)
2323
RS=" ";

0 commit comments

Comments
 (0)