mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Add custom version for verilator --version packaging (#4954)
This commit is contained in:
parent
9a3aed57b1
commit
04512e5d04
@ -136,6 +136,7 @@ Mostafa Gamal
|
||||
Nandu Raj
|
||||
Nathan Kohagen
|
||||
Nathan Myers
|
||||
Nolan Poe
|
||||
Oleh Maksymenko
|
||||
Patrick Stewart
|
||||
Paul Swirhun
|
||||
|
@ -22,7 +22,11 @@ Args = parser.parse_args()
|
||||
|
||||
os.chdir(Args.directory)
|
||||
|
||||
rev = 'UNKNOWN_REV'
|
||||
if 'VERILATOR_SRC_VERSION' in os.environ:
|
||||
rev = os.environ['VERILATOR_SRC_VERSION']
|
||||
else:
|
||||
rev = 'UNKNOWN_REV'
|
||||
|
||||
data = os.popen('git describe').read()
|
||||
|
||||
match = re.search(r'^(v[0-9].*)', data)
|
||||
|
Loading…
Reference in New Issue
Block a user