Skip to content

Commit 7add278

Browse files
author
Bradley Miller
committed
add build_info to pavement.py
1 parent 37329d6 commit 7add278

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎pavement.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ def build(options):
4848
options['force_all'] = True
4949
options['freshenv'] = True
5050

51+
bi = sh('git describe --long',capture=True)[:-1]
52+
bi = bi.split('-')[0]
53+
options.build.template_args["build_info"] = bi
54+
5155
if 'outputdir' in options.build:
5256
options.build.outdir = options.build.outputdir
5357
print 'Building into ', options.build.outdir

0 commit comments

Comments
 (0)