From 2d90a79b1d24062dcffce4591650831fcee62bf3 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 19 May 2023 04:47:20 -0400 Subject: add "make version" and update-version.sh. --- Makefile | 13 +++++++++++-- sbodl | 2 +- update-version.sh | 14 ++++++++++++++ 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 update-version.sh diff --git a/Makefile b/Makefile index 0aeb3d8..f93bc24 100644 --- a/Makefile +++ b/Makefile @@ -32,11 +32,12 @@ install: man gzip -9c < sbolint.1 > $(DESTDIR)$(MAN1DIR)/sbolint.1.gz gzip -9c < sbopkglint.1 > $(DESTDIR)$(MAN1DIR)/sbopkglint.1.gz gzip -9c < sbofixinfo.1 > $(DESTDIR)$(MAN1DIR)/sbofixinfo.1.gz + gzip -9c < sbodl.1 > $(DESTDIR)$(MAN1DIR)/sbodl.1.gz clean: - rm -f sbopkglint.1 sbolint.1 sbofixinfo.1 + rm -f sbopkglint.1 sbolint.1 sbofixinfo.1 sbodl.1 -man: sbopkglint.1 sbolint.1 sbofixinfo.1 +man: sbopkglint.1 sbolint.1 sbofixinfo.1 sbodl.1 sbolint.1: sbolint ./sbolint --man > sbolint.1 @@ -47,6 +48,14 @@ sbopkglint.1: sbopkglint sbofixinfo.1: sbofixinfo ./sbofixinfo --man > sbofixinfo.1 +sbodl.1: sbodl + ./sbodl --man > sbodl.1 + +version: + sh update-version.sh $(VERSION) + # this requires VERSION in this Makefile to be set to the latest git tag. release: clean git archive -o $(PROJ)-$(VERSION).tar.gz --prefix=$(PROJ)-$(VERSION)/ $(VERSION) + +.PHONY: all install clean version release diff --git a/sbodl b/sbodl index d67d4fb..cff2c5e 100755 --- a/sbodl +++ b/sbodl @@ -7,7 +7,7 @@ # change default cache dir. # 20170306 bkw: add caching -VERSION=0.8.0 +VER=0.7.0 : <&2 + exit 1 +fi + +sed -i "s,^VER=.*,VER=$VERSION," sbopkglint +sed -i "/^\$VERSION=/s,=.*,=\"$VERSION\";," sbolint sbofixinfo +sed -i "s,^VERSION=.*,VER=$VERSION," sbodl -- cgit v1.2.3