Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hdlmake
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Hdlmake
Commits
584d0263
Commit
584d0263
authored
13 years ago
by
Paweł Szostek
Browse files
Options
Downloads
Plain Diff
Merge branch 'option_tweak' into isyp_memberfix
Conflicts: src/__main__.py
parents
477b81e6
afc6e316
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/__main__.py
+25
-32
25 additions, 32 deletions
src/__main__.py
with
25 additions
and
32 deletions
src/__main__.py
+
25
−
32
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
()
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment