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
ecd89bf0
Commit
ecd89bf0
authored
Oct 09, 2014
by
Paweł Szostek
Committed by
Javier D. Garcia-Lasheras
Oct 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix includes and translate source code to name
parent
ea646dfd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
list_modules.py
hdlmake/action/list_modules.py
+15
-2
No files found.
hdlmake/action/list_modules.py
View file @
ecd89bf0
...
...
@@ -19,10 +19,22 @@
# You should have received a copy of the GNU General Public License
# along with Hdlmake. If not, see <http://www.gnu.org/licenses/>.
from
action
import
Action
from
__future__
import
absolute_import
from
action.action
import
Action
from
util
import
path
import
fetch
def
_convert_to_source_name
(
source_code
):
if
source_code
==
fetch
.
GIT
:
return
"git"
elif
source_code
==
fetch
.
SVN
:
return
"svn"
elif
source_code
==
fetch
.
LOCAL
:
return
"local"
elif
source_code
==
fetch
.
GITSUBMODULE
:
return
"git_submodule"
class
ListModules
(
Action
):
def
run
(
self
):
...
...
@@ -50,4 +62,5 @@ class ListModules(Action):
else
:
print
(
"#path
\t
source"
)
for
m
in
self
.
modules_pool
:
print
(
"
%
s
\t
%
s"
%
(
path
.
relpath
(
m
.
path
),
m
.
source
))
print
(
"
%
s
\t
%
s"
%
(
path
.
relpath
(
m
.
path
),
_convert_to_source_name
(
m
.
source
)))
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