vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit f5fe42686c4407798257811a94fabfa4462e61d2 parent 800c1c3f9fb504a266279f7cc04e99a9a7db5c8a Author: Christian Hesse <mail@eworm.de> Date: Tue, 6 Oct 2015 08:09:04 +0200 add a new Makefile target 'release' to build release tarball Diffstat:
| M | Makefile | | | 3 | +++ |
| M | config.mk | | | 3 | ++- |
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile @@ -50,4 +50,7 @@ uninstall: @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 @rm -f ${DESTDIR}${MANPREFIX}/man1/vis.1 +release: + git archive --format=tar.xz --prefix=vis-$(RELEASE)/ $(RELEASE) > vis-$(RELEASE).tar.xz + .PHONY: all clean dist install uninstall debug diff --git a/config.mk b/config.mk @@ -3,6 +3,7 @@ HAVE_ACL=0 HAVE_SELINUX=0 # vis version +RELEASE = 0.0.0 # try to get a tag and hash first GITHASH = $(shell git log -1 --format='%h' 2>/dev/null) GITTAG = $(shell git describe --abbrev=0 --tags 2>/dev/null) @@ -16,7 +17,7 @@ else ifneq ($(GITHASH),) VERSION = 0.r${GITREVCOUNT}.g${GITHASH} else # this is used when no git is available, e.g. for release tarball - VERSION = 0.0.0 + VERSION = ${RELEASE} endif # Customize below to fit your system