diff --git a/Makefile b/Makefile index f0b8809..0609315 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,9 @@ +version := $(shell git describe) + push.so: push.cpp + sed -i -e "s|PUSHVERSION \".*\"|PUSHVERSION \"$(version)\"|" push.cpp znc-buildmod push.cpp + sed -i -e "s|PUSHVERSION \".*\"|PUSHVERSION \"dev\"|" push.cpp install: push.so cp push.so $(HOME)/.znc/modules/push.so diff --git a/README.md b/README.md index 08d042c..3eee4af 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,10 @@ Commands Links you to this fine document. +* `version` + + Tells you the tagged build version currently running. + * `set