mirror of
https://github.com/verilator/verilator.git
synced 2025-01-21 05:44:03 +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
|
Nandu Raj
|
||||||
Nathan Kohagen
|
Nathan Kohagen
|
||||||
Nathan Myers
|
Nathan Myers
|
||||||
|
Nolan Poe
|
||||||
Oleh Maksymenko
|
Oleh Maksymenko
|
||||||
Patrick Stewart
|
Patrick Stewart
|
||||||
Paul Swirhun
|
Paul Swirhun
|
||||||
|
@ -22,7 +22,11 @@ Args = parser.parse_args()
|
|||||||
|
|
||||||
os.chdir(Args.directory)
|
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()
|
data = os.popen('git describe').read()
|
||||||
|
|
||||||
match = re.search(r'^(v[0-9].*)', data)
|
match = re.search(r'^(v[0-9].*)', data)
|
||||||
|
Loading…
Reference in New Issue
Block a user