embed git version/commit

This commit is contained in:
Jan-Piet Mens
2016-07-22 09:51:06 +02:00
parent f54cbb0de5
commit 32ec189662
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -68,6 +68,9 @@ CFLAGS += -DCONFIGFILE=\"$(CONFIGFILE)\"
TARGETS += ot-recorder ocat
GIT_VERSION := $(shell git describe --long --abbrev=10 --dirty --tags 2>/dev/null || echo "tarball")
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
all: $(TARGETS)
ot-recorder: recorder.o $(OTR_OBJS) $(OTR_EXTRA_OBJS)
+1
View File
@@ -128,6 +128,7 @@ void print_versioninfo()
#ifdef WITH_ENCRYPT
printf("\tSODIUM VERSION = %s\n", SODIUM_VERSION_STRING);
#endif
printf("\tGIT VERSION = %s\n", GIT_VERSION);
exit(0);
}