scripts makefile: add back leading "v" to hardcoded version string

This reverts the code changes from
2019-09-05T02:46:59Z!mikeonthecomputer@gmail.com.  Keeps the "v" from
appearing in file names, while still being a bit nice to see on the
title screen.
master
Mike Swanson 2019-09-17 16:36:00 -07:00
parent 366cc87d3c
commit 096f3418a6
3 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
VERSION=$(shell git describe --abbrev=8 --dirty 2>/dev/null || echo 0.11.3)
VERSION=$(shell git describe --abbrev=8 --dirty 2>/dev/null || echo v0.11.3)
WADS=wads
ASCIIDOC=asciidoc
ASCIIDOC_MAN=a2x -f manpage

View File

@ -34,6 +34,9 @@ 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,6 +24,9 @@ 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])