Retire VERSION file, put value into Makefile

This commit is contained in:
Mike Swanson 2019-09-04 19:46:59 -07:00
parent 4701d8f351
commit 180a11807b
4 changed files with 1 additions and 8 deletions

View file

@ -1,6 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
VERSION=$(shell git describe --abbrev=8 --dirty 2>/dev/null || cat VERSION)
VERSION=$(shell git describe --abbrev=8 --dirty 2>/dev/null || echo 0.11.3)
WADS=wads
CPP=scripts/simplecpp
DEUTEX=deutex

View file

@ -1 +0,0 @@
v0.11.3

View file

@ -34,9 +34,6 @@ json_file = os.getenv("JSON")
if version is None:
sys.stderr.write("Version is not specified for release\n")
sys.exit(1)
if version[0] is "v":
# Strip the leading 'v' from versioning
version = version[1:]
if json_file is None:
sys.stderr.write("JSON file not specified!\n")

View file

@ -24,9 +24,6 @@ version = os.getenv("VERSION")
if version is None:
sys.stderr.write("Version not specified for release\n")
sys.exit(1)
if version[0] is "v":
# Strip the leading 'v' from versioning
version = version[1:]
path = os.path.dirname(FILES[0])
basename = os.path.basename(FILES[0])