vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit a05a67d7ee826479d6db869d8fe56970eb94a371 parent fac43de49a27292fd6e6467994de060aa51cacd3 Author: Christian Hesse <mail@eworm.de> Date: Wed, 22 Apr 2015 13:59:47 +0200 get version from git Signed-off-by: Christian Hesse <mail@eworm.de> Diffstat:
| M | config.mk | | | 9 | ++++++++- |
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/config.mk b/config.mk @@ -1,5 +1,12 @@ # vis version -VERSION = devel +# we have no tags in git, so just use revision count an hash for now +GITREVCOUNT = "$(shell git rev-list --count master 2>/dev/null)" +GITHASH = "$(shell git log -1 --format="%h" 2>/dev/null)" +ifeq (${GITREVCOUNT},) + VERSION = devel +else + VERSION = "0.r${GITREVCOUNT}.g${GITHASH}" +endif # Customize below to fit your system