Skip to content

Commit

Permalink
Replace stub software version with the actual git tag version
Browse files Browse the repository at this point in the history
  • Loading branch information
NeroReflex committed Aug 14, 2024
1 parent 8a8b0d6 commit 1c7ce15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ ifeq ($(PREFIX),)
PREFIX := /
endif

VERSION := $(shell git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')

.PHONY: install

install:
Expand All @@ -25,3 +27,4 @@ install:
install -m 755 "frzr-source" "${PREFIX}/usr/bin"
install -m 755 "frzr-extras" "${PREFIX}/usr/bin"
install -m 755 "frzr-release" "${PREFIX}/usr/bin"
sed -i "s|1.0.0|${VERSION}|g" "${PREFIX}/usr/bin/__frzr-version"

0 comments on commit 1c7ce15

Please sign in to comment.