1
0
Mirror von https://github.com/tkuschel/bees.git synchronisiert 2026-06-19 06:57:54 +02:00

bees: add version string and put it in main() and stats file

Now that we have more than one bees release it's somewhat important
to know which one each bug report is for...
Dieser Commit ist enthalten in:
Zygo Blaxell
2016-12-08 23:47:17 -05:00
Ursprung b5c01c1985
Commit 77c11bb90f
4 geänderte Dateien mit 10 neuen und 2 gelöschten Zeilen
+3 -1
Datei anzeigen
@@ -11,6 +11,8 @@ LIBS = -lcrucible -lpthread
LDFLAGS = -L../lib -Wl,-rpath=$(shell realpath ../lib)
depends.mk: Makefile *.cc
echo "#define BEES_VERSION \"$(shell git describe --always --dirty || echo UNKNOWN)\"" > bees-version.new.h
mv -f bees-version.new.h bees-version.h
for x in *.cc; do $(CXX) $(CXXFLAGS) -M "$$x"; done > depends.mk.new
mv -fv depends.mk.new depends.mk
@@ -36,4 +38,4 @@ BEES_OBJS = \
$(CXX) $(CXXFLAGS) -o "$@" $(BEES_OBJS) $(LDFLAGS) $(LIBS)
clean:
-rm -fv *.o
-rm -fv *.o bees-version.h