mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-18 21:13:56 +01:00
defs.mk: Add support for optional VERSION file in working directory
This commit is contained in:
parent
25900857e5
commit
341ca6c96d
1 changed files with 3 additions and 2 deletions
|
|
@ -36,8 +36,9 @@ PROJECT_CAPNAME = $(shell echo $(PROJECT) | tr [a-z] [A-Z] | sed 's/-/_/g
|
||||||
PROJECT_DESCR ?= No description
|
PROJECT_DESCR ?= No description
|
||||||
CUSTOMER ?= jannet
|
CUSTOMER ?= jannet
|
||||||
|
|
||||||
VERSION ?= $(shell cat $(TOPDIR)/VERSION)
|
VERSION_FILE ?= $(firstword $(wildcard VERSION $(TOPDIR)/VERSION))
|
||||||
DIST_VERSION ?= $(shell sed -e "s/-dev//" $(TOPDIR)/VERSION)
|
VERSION ?= $(shell cat $(VERSION_FILE))
|
||||||
|
DIST_VERSION ?= $(shell sed -e "s/-dev//" $(VERSION_FILE))
|
||||||
HEX_VERSION = $(shell echo $(DIST_VERSION) | \
|
HEX_VERSION = $(shell echo $(DIST_VERSION) | \
|
||||||
sed 's/-dev//; s/pre[^\.]*//; s/F[^\.]//; s/[\.-]/ /g' | xargs printf "0x%02x%02x%02x%02x")
|
sed 's/-dev//; s/pre[^\.]*//; s/F[^\.]//; s/[\.-]/ /g' | xargs printf "0x%02x%02x%02x%02x")
|
||||||
BINARY_VERSION = $(shell echo $(PROJECT)_$(DIST_VERSION) | tr [a-z] [A-Z] | sed 's/-[^-]*$$//; s/-/_/g')
|
BINARY_VERSION = $(shell echo $(PROJECT)_$(DIST_VERSION) | tr [a-z] [A-Z] | sed 's/-[^-]*$$//; s/-/_/g')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue