Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
396f2fcd
Commit
396f2fcd
authored
Jul 09, 2015
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/modfiles: include _info (unless requested not to)
Signed-off-by:
Rusty Russell
<
rusty@rustcorp.com.au
>
parent
1f6af6a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
tools/modfiles.c
tools/modfiles.c
+7
-0
No files found.
tools/modfiles.c
View file @
396f2fcd
...
...
@@ -24,6 +24,7 @@ int main(int argc, char *argv[])
bool
license
=
true
;
bool
tests
=
true
;
bool
other
=
true
;
bool
info
=
true
;
bool
gitonly
=
false
;
bool
nul_term
=
false
;
bool
fullpath
=
false
;
...
...
@@ -33,6 +34,8 @@ int main(int argc, char *argv[])
"Don't list .c and .h files"
);
opt_register_noarg
(
"--no-license"
,
opt_set_invbool
,
&
license
,
"Don't list license file"
);
opt_register_noarg
(
"--no-info"
,
opt_set_invbool
,
&
info
,
"Don't list _info file"
);
opt_register_noarg
(
"--no-tests"
,
opt_set_invbool
,
&
tests
,
"Don't list test files"
);
opt_register_noarg
(
"--no-other"
,
opt_set_invbool
,
&
other
,
...
...
@@ -55,6 +58,10 @@ int main(int argc, char *argv[])
struct
manifest
*
m
=
get_manifest
(
NULL
,
argv
[
i
]);
struct
list_head
*
list
;
struct
ccan_file
*
f
;
if
(
info
)
add_file
(
m
->
info_file
,
fullpath
,
nul_term
,
gitonly
);
if
(
code
)
{
foreach_ptr
(
list
,
&
m
->
c_files
,
&
m
->
h_files
)
{
list_for_each
(
list
,
f
,
list
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment