From 6a355e1056b89a19a12432c9f69eb3286aa10fce Mon Sep 17 00:00:00 2001 From: Thea Flowers Date: Sat, 23 Jan 2021 20:41:02 -0500 Subject: [PATCH] Fix year determination in build_info.mk --- firmware/scripts/build_info.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/scripts/build_info.mk b/firmware/scripts/build_info.mk index d821ddf2..3f94879c 100644 --- a/firmware/scripts/build_info.mk +++ b/firmware/scripts/build_info.mk @@ -5,9 +5,9 @@ BUILD_INFO_COMPILER = $(CC) $(shell $(CC) -dumpversion) BUILD_INFO_RELEASE = $(shell git describe --tags --abbrev=0) # Looks like: 12 24 2020 BUILD_INFO_RELEASE_PARTS = $(subst ., ,$(BUILD_INFO_RELEASE)) -BUILD_INFO_RELEASE_YEAR = $(word 3,$(BUILD_INFO_RELEASE_PARTS)) +BUILD_INFO_RELEASE_YEAR = $(word 1,$(BUILD_INFO_RELEASE_PARTS)) BUILD_INFO_RELEASE_MONTH = $(word 2,$(BUILD_INFO_RELEASE_PARTS)) -BUILD_INFO_RELEASE_DAY = $(word 1,$(BUILD_INFO_RELEASE_PARTS)) +BUILD_INFO_RELEASE_DAY = $(word 3,$(BUILD_INFO_RELEASE_PARTS)) # Looks like: 12.24.2020-46-gb77c425-dirty BUILD_INFO_REVISION = $(shell git describe --always --tags --dirty) # Looks like: 20/01/2021 22:34 UTC