Skip to content

Commit

Permalink
makefile: allow quicker versioning
Browse files Browse the repository at this point in the history
e.g., VERSION=1.2.3 make version

Signed-off-by: Francesco Giudici <[email protected]>
  • Loading branch information
fgiudici committed May 3, 2024
1 parent c289dcb commit fd2873f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
GIT_TAG?=$(shell git describe --abbrev=0 --tags 2>/dev/null || echo "v0.0.0" )
VERSION?=$(shell echo $(GIT_TAG) | sed 's/[a-z]*\([0-9]\(\.[0-9]\)\{0,2\}\).*/\1/g')-dev

version:
sed -i 's/^VERSION=.*/VERSION="$(VERSION)"/' elemental-*
sed -i 's/^VERSION=.*/VERSION="$(VERSION)"/' leapmicrok3s.sh

0 comments on commit fd2873f

Please sign in to comment.