branch: externals/csharp-mode
commit 287f044d2c4243cfd3deacd04508b236877350b6
Author: Jostein Kjønigsen <jost...@kjonigsen.net>
Commit: Jostein Kjønigsen <jost...@kjonigsen.net>

    Automatically detect version during package-build based on elisp-content.
---
 makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/makefile b/makefile
index cd06de7..1cc8320 100644
--- a/makefile
+++ b/makefile
@@ -1,4 +1,5 @@
-VERSION:=0.8.7
+#VERSION:=0.8.7
+VERSION=$(shell grep ";; Version " csharp-mode.el | cut -d ":" -f2 | cut -c2-)
 PACKAGE_SHORTNAME=csharp-mode
 PACKAGE_NAME:=$(PACKAGE_SHORTNAME)-$(VERSION)
 PACKAGE_DIR:=/tmp/$(PACKAGE_NAME)

Reply via email to