Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 396f2fc

Browse files
committedJul 9, 2015
tools/modfiles: include _info (unless requested not to)
Signed-off-by: Rusty Russell <[email protected]>
1 parent 1f6af6a commit 396f2fc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎tools/modfiles.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ int main(int argc, char *argv[])
2424
bool license = true;
2525
bool tests = true;
2626
bool other = true;
27+
bool info = true;
2728
bool gitonly = false;
2829
bool nul_term = false;
2930
bool fullpath = false;
@@ -33,6 +34,8 @@ int main(int argc, char *argv[])
3334
"Don't list .c and .h files");
3435
opt_register_noarg("--no-license", opt_set_invbool, &license,
3536
"Don't list license file");
37+
opt_register_noarg("--no-info", opt_set_invbool, &info,
38+
"Don't list _info file");
3639
opt_register_noarg("--no-tests", opt_set_invbool, &tests,
3740
"Don't list test files");
3841
opt_register_noarg("--no-other", opt_set_invbool, &other,
@@ -55,6 +58,10 @@ int main(int argc, char *argv[])
5558
struct manifest *m = get_manifest(NULL, argv[i]);
5659
struct list_head *list;
5760
struct ccan_file *f;
61+
62+
if (info)
63+
add_file(m->info_file, fullpath, nul_term, gitonly);
64+
5865
if (code) {
5966
foreach_ptr(list, &m->c_files, &m->h_files) {
6067
list_for_each(list, f, list)

0 commit comments

Comments
 (0)
Please sign in to comment.