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
584d0263
Commit
584d0263
authored
Jan 22, 2012
by
Paweł Szostek
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'option_tweak' into isyp_memberfix
Conflicts: src/__main__.py
parents
477b81e6
afc6e316
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
32 deletions
+25
-32
__main__.py
src/__main__.py
+25
-32
No files found.
src/__main__.py
View file @
584d0263
...
...
@@ -109,38 +109,31 @@ use 0 for current version""", metavar="ISE")
from
hdlmake_kernel
import
HdlmakeKernel
kernel
=
HdlmakeKernel
(
modules_pool
=
pool
,
connection
=
ssh
,
options
=
options
)
import
traceback
try
:
if
options
.
fetch
:
kernel
.
fetch
()
elif
options
.
local
:
kernel
.
run_local_synthesis
()
elif
options
.
remote
:
kernel
.
run_remote_synthesis
()
elif
options
.
make_sim
:
kernel
.
generate_modelsim_makefile
()
elif
options
.
ise_proj
:
kernel
.
generate_ise_project
()
elif
options
.
make_fetch
:
kernel
.
generate_fetch_makefile
()
elif
options
.
make_ise
:
kernel
.
generate_ise_makefile
()
elif
options
.
make_remote
:
kernel
.
generate_remote_synthesis_makefile
()
elif
options
.
list
:
kernel
.
list_modules
()
elif
options
.
list_files
:
kernel
.
list_files
()
elif
options
.
clean
:
kernel
.
clean_modules
()
else
:
kernel
.
run
()
p
.
rawprint
(
"Done."
)
except
IndexError
:
p
.
rawprint
(
"Ooops.. An error has occured. Sorry."
)
p
.
rawprint
(
"Here is some debugging info"
)
traceback
.
print_exc
()
options_kernel_mapping
=
{
"fetch"
:
"fetch"
,
"make_sim"
:
"generate_modelsim_makefile"
,
"ise_proj"
:
"generate_ise_project"
,
"local"
:
"run_local_synthesis"
,
"remote"
:
"run_remote_synthesis"
,
"make_fetch"
:
"generate_fetch_makefile"
,
"make_ise"
:
"generate_ise_makefile"
,
"make_remote"
:
"generate_remote_synthesis_makefile"
,
"list"
:
"list_modules"
,
"clean"
:
"clean_modules"
}
sth_chosen
=
False
for
option
,
function
in
options_kernel_mapping
.
items
():
try
:
is_set
=
getattr
(
options
,
option
)
if
is_set
:
getattr
(
kernel
,
function
)()
sth_chosen
=
True
except
Exception
,
e
:
print
e
if
not
sth_chosen
:
kernel
.
run
()
if
__name__
==
"__main__"
:
main
()
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