Skip to content

Commit

Permalink
Merge pull request #493 from citrus-it/buildnum
Browse files Browse the repository at this point in the history
Determine BUILDNUM from os-release
  • Loading branch information
hadfl authored Aug 24, 2024
2 parents a23e6f1 + 09bb839 commit f58bac4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pkg/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f58bac4

Please sign in to comment.