aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-08-27 10:13:23 +0200
committerClifford Wolf <clifford@clifford.at>2019-08-27 10:15:25 +0200
commitfdbcf789099d327bd5e9f2e0658cdad754b09db2 (patch)
treee7ce2dfd4ec66fedf22461bd7fcda0b7ce915b83
parentbd3773a17f220f1fa9b478b3785acac42ca3bd7f (diff)
downloadyosys-fdbcf789099d327bd5e9f2e0658cdad754b09db2.tar.gz
yosys-fdbcf789099d327bd5e9f2e0658cdad754b09db2.tar.bz2
yosys-fdbcf789099d327bd5e9f2e0658cdad754b09db2.zip
Add "make bumpversion"
Signed-off-by: Clifford Wolf <clifford@clifford.at>
-rw-r--r--CodingReadme1
-rw-r--r--Makefile3
2 files changed, 4 insertions, 0 deletions
diff --git a/CodingReadme b/CodingReadme
index b64e79178..8212436e5 100644
--- a/CodingReadme
+++ b/CodingReadme
@@ -390,6 +390,7 @@ Finally run all tests with "make config-{clang,gcc,gcc-4.8}":
Release:
- set YOSYS_VER to x.y.z in Makefile
+ - remove "bumpversion" target from Makefile
- update version string in CHANGELOG
git commit -am "Yosys x.y.z"
diff --git a/Makefile b/Makefile
index 48a4f3a1c..e56db424d 100644
--- a/Makefile
+++ b/Makefile
@@ -119,6 +119,9 @@ YOSYS_VER := 0.9+1
GIT_REV := $(shell cd $(YOSYS_SRC) && git rev-parse --short HEAD 2> /dev/null || echo UNKNOWN)
OBJS = kernel/version_$(GIT_REV).o
+bumpversion:
+ sed -i "/^YOSYS_VER := / s/+[0-9][0-9]*$$/+`git log --oneline 8a4c6e6.. | wc -l`/;" Makefile
+
# set 'ABCREV = default' to use abc/ as it is
#
# Note: If you do ABC development, make sure that 'abc' in this directory