X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fccan_depends.c;h=6d1f74297b30a01438ca10cb82e2eeaf65a7f962;hb=5e0d0dcb720ebbc4998871c63dfd47c00bca11ba;hp=1baff828c267899364bd06ee0500fb1ab875d45c;hpb=b0f7eb297643941bd96eb209f35fbe223cd24e10;p=ccan diff --git a/tools/ccan_depends.c b/tools/ccan_depends.c index 1baff828..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]