1
0
Mirror von https://github.com/tkuschel/bees.git synchronisiert 2026-05-07 20:49:38 +02:00

lib: add a version string

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
Dieser Commit ist enthalten in:
Zygo Blaxell
2017-01-18 22:17:02 -05:00
Ursprung 50417e961f
Commit 38fffa8e27
3 geänderte Dateien mit 14 neuen und 0 gelöschten Zeilen
+8
Datei anzeigen
@@ -0,0 +1,8 @@
#ifndef CRUCIBLE_VERSION_H
#define CRUCIBLE_VERSION_H
namespace crucible {
extern const char *VERSION;
}
#endif CRUCIBLE_VERSION_H
+1
Datei anzeigen
@@ -0,0 +1 @@
.version.*
+5
Datei anzeigen
@@ -13,6 +13,7 @@ OBJS = \
string.o \
time.o \
uuid.o \
.version.o \
include ../makeflags
@@ -21,6 +22,10 @@ depends.mk: *.c *.cc
for x in *.cc; do $(CXX) $(CXXFLAGS) -M "$$x"; done >> depends.mk.new
mv -fv depends.mk.new depends.mk
.version.cc: Makefile ../makeflags *.c *.cc ../include/crucible/*.h
echo "namespace crucible { const char *VERSION = \"$(shell git describe --always --dirty || echo UNKNOWN)\"; }" > .version.new.cc
mv -f .version.new.cc .version.cc
-include depends.mk
%.o: %.c