From 180a11807b2c0ce30a09cfd90d0dbbe8481afb90 Mon Sep 17 00:00:00 2001 From: Mike Swanson Date: Wed, 4 Sep 2019 19:46:59 -0700 Subject: [PATCH] Retire VERSION file, put value into Makefile --- Makefile | 2 +- VERSION | 1 - scripts/makejson | 3 --- scripts/makepkgs | 3 --- 4 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 VERSION diff --git a/Makefile b/Makefile index c063363e..429a299d 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/VERSION b/VERSION deleted file mode 100644 index 8a2b9627..00000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -v0.11.3 diff --git a/scripts/makejson b/scripts/makejson index 42f171ed..e127e6ff 100755 --- a/scripts/makejson +++ b/scripts/makejson @@ -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") diff --git a/scripts/makepkgs b/scripts/makepkgs index b1a005c9..b6fa89f8 100755 --- a/scripts/makepkgs +++ b/scripts/makepkgs @@ -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])