From 09bb839b2c3bb801eec4b69985ea0d072e3a3ba4 Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Thu, 22 Aug 2024 19:43:45 +0000 Subject: [PATCH] Determine BUILDNUM from os-release --- src/pkg/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pkg/Makefile b/src/pkg/Makefile index 2e937a97c..c9fa60ccd 100644 --- a/src/pkg/Makefile +++ b/src/pkg/Makefile @@ -28,7 +28,8 @@ include ../Makefile.com PKGVERS_COMPONENT = 0.5.11 PKGVERS_BUILTON = 5.11 BUILDNUM.cmd = \ - nawk '$$1 == "OmniOS" { print $$3 }' /etc/release | tr -d '[a-z]' + awk -F= '$$1 == "BUILD_ID" { split($$2, a, "."); print a[1] }' \ + /etc/os-release BUILDNUM = $(BUILDNUM.cmd:sh) UPDATENUM = 0 SRUNUM = 0