Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
4d712d8d
Commit
4d712d8d
authored
Aug 17, 2016
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a '--top' option to list-files to build a file hierarchy list
parent
a774d263
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
__main__.py
hdlmake/__main__.py
+5
-0
core.py
hdlmake/action/core.py
+1
-1
No files found.
hdlmake/__main__.py
View file @
4d712d8d
...
...
@@ -244,6 +244,11 @@ def _get_parser():
dest
=
"reverse"
,
default
=
False
,
action
=
"store_true"
)
listfiles
.
add_argument
(
"--top"
,
help
=
"print only those files required to build 'top'"
,
dest
=
"top"
,
default
=
None
)
tree
=
subparsers
.
add_parser
(
"tree"
,
help
=
"generate a module hierarchy tree"
)
...
...
hdlmake/action/core.py
View file @
4d712d8d
...
...
@@ -114,7 +114,7 @@ class ActionCore(Action):
for
mod_aux
in
unfetched_modules
:
logging
.
warning
(
"List incomplete, module
%
s has not been fetched!"
,
mod_aux
)
file_set
=
self
.
build_file_set
()
file_set
=
self
.
build_file_set
(
top_entity
=
self
.
env
.
options
.
top
)
file_list
=
dep_solver
.
make_dependency_sorted_list
(
file_set
)
files_str
=
[
file_aux
.
path
for
file_aux
in
file_list
]
if
self
.
env
.
options
.
delimiter
is
None
:
...
...
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