Skip to content
Snippets Groups Projects
Commit 862f3cdf authored by Adrian Schmutzler's avatar Adrian Schmutzler
Browse files

buildscript: Include build variant in firmware version label


With this change, based on a tag "20190101" two firmwares
node-20190101
layer3-20190101
can be created based on build variant.

Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: default avatarTim Niemeyer <tim@tn-x.org>
parent e6c469ec
No related branches found
No related tags found
No related merge requests found
......@@ -201,6 +201,9 @@ prebuild() {
if [ 0 -ne $? ]; then
version=$(git log -1 --pretty=format:%h)
fi
if [ -n "$(cat selected_variant)" ]; then
version="$(cat selected_variant)-$version"
fi
{
echo "FIRMWARE_VERSION=\"$version\""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment