aboutsummaryrefslogtreecommitdiffstats
path: root/testing/keyd/ungit.patch
blob: 4566796dd35d162df1ee3572db95fad57a50d0f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,7 @@
 PREFIX=/usr
 
 VERSION=1.1.2
-GIT_HASH=$(shell git describe --no-match --always --abbrev=40 --dirty)
-CFLAGS=-DVERSION=\"$(VERSION)\" -DGIT_COMMIT_HASH=\"$(GIT_HASH)\"
+CFLAGS=-DVERSION=\"$(VERSION)\"
 
 all:
 	mkdir -p bin
--- a/src/main.c
+++ b/src/main.c
@@ -890,7 +890,7 @@
 {
 	if(argc > 1) {
 		if(!strcmp(argv[1], "-v")) {
-			fprintf(stderr, "keyd version: %s (%s)\n", VERSION, GIT_COMMIT_HASH);
+			fprintf(stderr, "keyd version: %s\n", VERSION);
 			return 0;
 		} else if(!strcmp(argv[1], "-m")) {
 			return monitor_loop();
@@ -918,7 +918,7 @@
 	if(argc > 1 && !strcmp(argv[1], "-d"))
 		daemonize();
 
-	warn("Starting keyd v%s (%s).", VERSION, GIT_COMMIT_HASH);
+	warn("Starting keyd v%s.", VERSION);
 	config_generate();
 	ufd = create_uinput_fd();