diff options
-rw-r--r-- | Makefile | 13 | ||||
-rwxr-xr-x | sbodl | 2 | ||||
-rw-r--r-- | update-version.sh | 14 |
3 files changed, 26 insertions, 3 deletions
@@ -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 @@ -7,7 +7,7 @@ # change default cache dir. # 20170306 bkw: add caching -VERSION=0.8.0 +VER=0.7.0 : <<EOF =pod diff --git a/update-version.sh b/update-version.sh new file mode 100644 index 0000000..5f5bd93 --- /dev/null +++ b/update-version.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# We have hardcoded version strings in the various scripts, this will +# update them all. Don't run directly, use "make version". + +VERSION="$1" +if [ -z "$VERSION" ]; then + echo "$0: missing VERSION argument" 1>&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 |