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
4ca5207d
Commit
4ca5207d
authored
Aug 08, 2016
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just a checkpoint while refactoring config parser
parent
fbec3288
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
104 additions
and
82 deletions
+104
-82
__main__.py
hdlmake/__main__.py
+14
-5
manifest_parser.py
hdlmake/manifest_parser.py
+3
-3
configparser.py
hdlmake/util/configparser.py
+87
-74
No files found.
hdlmake/__main__.py
View file @
4ca5207d
...
@@ -199,8 +199,12 @@ def _get_parser():
...
@@ -199,8 +199,12 @@ def _get_parser():
help
=
"set delimitier for the list of files"
,
help
=
"set delimitier for the list of files"
,
dest
=
"delimiter"
,
dest
=
"delimiter"
,
default
=
None
)
default
=
None
)
# listfiles.add_argument("--reverse", help="reverse the order for the list
listfiles
.
add_argument
(
# of files", dest="reverse", default=False, action="store_true")
"--reverse"
,
help
=
"reverse the order for the list of files"
,
dest
=
"reverse"
,
default
=
False
,
action
=
"store_true"
)
synthesis_proj
=
subparsers
.
add_parser
(
synthesis_proj
=
subparsers
.
add_parser
(
"project"
,
"project"
,
help
=
"create/update a project for the appropriated tool"
)
help
=
"create/update a project for the appropriated tool"
)
...
@@ -258,10 +262,15 @@ def _get_parser():
...
@@ -258,10 +262,15 @@ def _get_parser():
default
=
False
,
default
=
False
,
action
=
"store_true"
)
action
=
"store_true"
)
parser
.
add_argument
(
parser
.
add_argument
(
"--py"
,
"--prefix"
,
dest
=
"arbitrary_code"
,
dest
=
"prefix_code"
,
default
=
""
,
help
=
"Arbitrary python code to be executed just before the Manifest"
)
parser
.
add_argument
(
"--sufix"
,
dest
=
"sufix_code"
,
default
=
""
,
default
=
""
,
help
=
"
add arbitrary code when evaluation all manifests
"
)
help
=
"
Arbitrary python code to be executed just after the Manifest
"
)
parser
.
add_argument
(
parser
.
add_argument
(
"--log"
,
"--log"
,
dest
=
"log"
,
dest
=
"log"
,
...
...
hdlmake/manifest_parser.py
View file @
4ca5207d
...
@@ -69,9 +69,9 @@ class ManifestParser(ConfigParser):
...
@@ -69,9 +69,9 @@ class ManifestParser(ConfigParser):
'type'
:
{}}]
'type'
:
{}}]
self
.
add_option_list
(
general_options
)
self
.
add_option_list
(
general_options
)
self
.
add_delimiter
()
self
.
add_delimiter
()
self
.
add_type
(
'include_dirs'
,
type
=
""
)
self
.
add_type
(
'include_dirs'
,
type
_new
=
""
)
self
.
add_type
(
'incl_makefiles'
,
type
=
''
)
self
.
add_type
(
'incl_makefiles'
,
type
_new
=
''
)
self
.
add_type
(
'files'
,
type
=
[])
self
.
add_type
(
'files'
,
type
_new
=
[])
self
.
add_allowed_key
(
'modules'
,
key
=
"svn"
)
self
.
add_allowed_key
(
'modules'
,
key
=
"svn"
)
self
.
add_allowed_key
(
'modules'
,
key
=
"git"
)
self
.
add_allowed_key
(
'modules'
,
key
=
"git"
)
self
.
add_allowed_key
(
'modules'
,
key
=
"local"
)
self
.
add_allowed_key
(
'modules'
,
key
=
"local"
)
...
...
hdlmake/util/configparser.py
View file @
4ca5207d
This diff is collapsed.
Click to expand it.
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