From patchwork Sun Feb 3 16:58:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: buildscript: Include build variant in firmware version label From: Adrian Schmutzler X-Patchwork-Id: 1016 Message-Id: <20190203165800.1370-1-freifunk@adrianschmutzler.de> To: franken-dev@freifunk.net Date: Sun, 3 Feb 2019 17:58:00 +0100 With this change, based on a tag "20190101" two firmwares node-20190101 layer3-20190101 can be created based on build variant. Signed-off-by: Adrian Schmutzler Reviewed-by: Tim Niemeyer Reviewed-by: Tim Niemeyer > --- buildscript | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildscript b/buildscript index 06edf178..49737229 100755 --- a/buildscript +++ b/buildscript @@ -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\""