5 #include "string/string.h"
6 #include "talloc/talloc.h"
8 int main(int argc, char *argv[])
14 if (argv[1] && streq(argv[1], "--compile")) {
20 errx(1, "Usage: ccan_depends [--compile] <dir>\n"
21 "Spits out all the ccan dependencies (recursively)");
24 deps = get_deps(talloc_autofree_context(), argv[1]);
26 deps = get_safe_ccan_deps(talloc_autofree_context(), argv[1]);
28 for (i = 0; deps[i]; i++)
29 if (strstarts(deps[i], "ccan/"))
30 printf("%s\n", deps[i]);