X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccan_depends.c;h=6d1f74297b30a01438ca10cb82e2eeaf65a7f962;hb=199023653cd6020218fbc4d0712591fc7ee0c5e1;hp=42efd9558600b96b205a40de15301ebe458f313f;hpb=5b7e9d904afa72961340c225de39daab29ff7d0e;p=ccan diff --git a/tools/ccan_depends.c b/tools/ccan_depends.c index 42efd955..6d1f7429 100644 --- a/tools/ccan_depends.c +++ b/tools/ccan_depends.c @@ -12,7 +12,7 @@ int main(int argc, char *argv[]) bool compile = false; bool recurse = true; bool ccan = true; - char *dirname, *basename; + const char *style = "depends"; if (argv[1] && streq(argv[1], "--direct")) { argv++; @@ -29,23 +29,25 @@ int main(int argc, char *argv[]) argc--; ccan = false; } + if (argv[1] && streq(argv[1], "--tests")) { + argv++; + argc--; + style = "testdepends"; + } if (argc != 2) - errx(1, "Usage: ccan_depends [--direct] [--compile] [--non-ccan]