[PATCH] buildscript: Include build variant in firmware version label
Adrian Schmutzler
mail at adrianschmutzler.de
Di Feb 5 14:46:25 CET 2019
Applied.
> -----Original Message-----
> From: franken-dev [mailto:franken-dev-bounces at freifunk.net] On Behalf Of
> Adrian Schmutzler
> Sent: Sonntag, 3. Februar 2019 17:58
> To: franken-dev at freifunk.net
> Subject: [PATCH] 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: Adrian Schmutzler <freifunk at adrianschmutzler.de>
> ---
> 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\""
> --
> 2.11.0
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname : nicht verfügbar
Dateityp : application/pgp-signature
Dateigröße : 834 bytes
Beschreibung: nicht verfügbar
URL : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20190205/0a459c1f/attachment.sig>
Mehr Informationen über die Mailingliste franken-dev