Commit 7a7fa084 authored by Rusty Russell's avatar Rusty Russell

tools: don't include submodules in manifest.

They currently get classed as "other_files"; they should be entirely
ignored.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent b2c6f0ac
......@@ -169,8 +169,15 @@ static void add_files(struct manifest *m, const char *base, const char *subdir)
&& list_empty(&m->h_files))
errx(1, "No _info, C or H files found here!");
for (i = 0; i < tal_count(subs); i++)
add_files(m, base, subs[i]);
/* Don't enter subdirs with _info: they're separate modules. */
for (i = 0; i < tal_count(subs); i++) {
struct stat st;
char *subinfo = path_join(subs, base,
path_join(subs, subs[i],
"_info"));
if (lstat(subinfo, &st) != 0)
add_files(m, base, subs[i]);
}
}
tal_free(subs);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment