summaryrefslogtreecommitdiff
path: root/mkosi.build
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2021-01-15 20:51:42 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2021-01-15 21:42:30 +0100
commitef1bd2349b4f1450273f10f344138ede1df1af56 (patch)
treedd00f9df74b2ff5ea7dcfbe5273d8e4684efc561 /mkosi.build
parent2e445f4fe561339aa066c918ee2c6ac584922ddf (diff)
downloadsystemd-ef1bd2349b4f1450273f10f344138ede1df1af56.tar.gz
mkosi: Allow setting version-tag option via VERSION_TAG env variable
With https://github.com/systemd/mkosi/pull/630, we can set environment variables for the build script in mkosi. Let's modify the build script so we can set the version-tag option via an environment variable of the same name. The default is the empty string which causes meson to fall back to the default behavior (git version).
Diffstat (limited to 'mkosi.build')
-rwxr-xr-xmkosi.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkosi.build b/mkosi.build
index b60a61f8fe..0fa0f0aa17 100755
--- a/mkosi.build
+++ b/mkosi.build
@@ -92,7 +92,8 @@ if [ ! -f "$BUILDDIR"/build.ninja ] ; then
-D man=false \
-D "nobody-user=$nobody_user" \
-D "nobody-group=$nobody_group" \
- -D translations=false
+ -D translations=false \
+ -D version-tag="${VERSION_TAG}"
fi
cd "$BUILDDIR"