Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv2v
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
sv2v
Commits
2a1e772a
Commit
2a1e772a
authored
May 31, 2020
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use git describe for version summary
parent
11607f55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
src/Job.hs
+2
-7
No files found.
src/Job.hs
View file @
2a1e772a
...
...
@@ -8,7 +8,7 @@
module
Job
where
import
GitHash
(
gi
Hash
,
tGitInfoCwd
)
import
GitHash
(
gi
Describe
,
tGitInfoCwd
)
import
System.IO
(
stderr
,
hPutStr
)
import
System.Console.CmdArgs
import
System.Environment
(
getArgs
,
withArgs
)
...
...
@@ -31,11 +31,6 @@ data Job = Job
,
verbose
::
Bool
}
deriving
(
Show
,
Typeable
,
Data
)
gitHash
::
String
gitHash
=
giHash
$$
tGitInfoCwd
shortGitHash
::
String
shortGitHash
=
take
7
gitHash
defaultJob
::
Job
defaultJob
=
Job
{
files
=
def
&=
args
&=
typ
"FILES"
...
...
@@ -54,7 +49,7 @@ defaultJob = Job
,
verbose
=
nam
"verbose"
&=
help
"Retain certain conversion artifacts"
}
&=
program
"sv2v"
&=
summary
(
"sv2v
v0.0.4 ("
++
shortGitHash
++
")"
)
&=
summary
(
"sv2v
"
++
giDescribe
$$
tGitInfoCwd
)
&=
details
[
"sv2v converts SystemVerilog to Verilog."
,
"More info: https://github.com/zachjs/sv2v"
,
"(C) 2019-2020 Zachary Snow, 2011-2015 Tom Hawkins"
]
...
...
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