From aedfa704dcdbc19afa7b18608ac08b76baa7c852 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 21 Feb 2023 15:41:47 +0200 Subject: [PATCH] aedi: print version [skip ci] --- aedi/builder.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aedi/builder.py b/aedi/builder.py index 5d046e72..9e068228 100644 --- a/aedi/builder.py +++ b/aedi/builder.py @@ -163,6 +163,12 @@ class Builder(object): state.environment = self._environment.copy() state.options = CommandLineOptions() + args = ('git', f'--git-dir={state.source}/.git', 'describe', '--tags') + version = subprocess.run(args, env=state.environment, capture_output=True) + + if version.returncode == 0: + print(version.stdout.decode('ascii')) + target.configure(state) target.build(state) target.post_build(state)