scripts: better prerelease extractor

This commit is contained in:
Mahmood Ali
2019-04-08 21:42:10 -04:00
parent bc98cf09e9
commit ca9b27e9db

View File

@@ -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)"