mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 17:05:43 +03:00
scripts: better prerelease extractor
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
NOMAD_VERSION = 0.9.0-dev
|
||||
|
||||
NOMAD_MAIN_VERSION := $(shell echo $(NOMAD_VERSION) | cut -d- -f1)
|
||||
NOMAD_PRERELEASE_VERSION := $(shell echo $(NOMAD_VERSION) | cut -d- -f2-)
|
||||
NOMAD_PRERELEASE_VERSION := $(shell echo $(NOMAD_VERSION) | sed 's|^[^-]*-\{0,1\}||g' )
|
||||
|
||||
update_version:
|
||||
@echo "updating version to $(NOMAD_MAIN_VERSION)-$(NOMAD_PRERELEASE_VERSION)"
|
||||
|
||||
Reference in New Issue
Block a user