summaryrefslogtreecommitdiff
blob: 53ae30abacc29376778a99a87273e36e5f8ac77f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- lyskom-elisp-client-orig/src/Makefile
+++ lyskom-elisp-client/src/Makefile
@@ -41,7 +41,7 @@
 # Also remember to change version number in ../doc/Makefile!
 LASTRELEASE = 0.48
 NEXTRELEASE = 0.49
-CLIENTVERSION = $(shell (git describe --exact-match --tags HEAD 2>/dev/null || git describe --tags --match 'v*' --dirty) | sed -e 's/^v//' -e 's/-/-devbuild-/')
+CLIENTVERSION = unknown
 
 ######################################################################
 
@@ -155,7 +155,7 @@
 
 version.el: version.el.in Makefile $(HEADER1) $(HEADER2) $(LANGUAGE-EL) $(SOURCES)
 	rm -f $@
-	sed "s/@@CLIENTVERSION@@/$(LASTRELEASE) (`date +%Y-%m-%d`; Git `git rev-parse --short HEAD``git diff --quiet HEAD||echo '*'`)/g" <$< >$@
+	sed "s/@@CLIENTVERSION@@/$(LASTRELEASE) (@@DATE@@; Git *)/g" <$< >$@
 	chmod 444 $@
 
 version.el-release: version.el.in Makefile $(HEADER1) $(HEADER2) $(LANGUAGE-EL) $(SOURCES)