Implement the command "sics_revision" to get the SVN revision into the SICServer executable
r3734 | dcl | 2012-09-14 17:18:11 +1000 (Fri, 14 Sep 2012) | 1 line
This commit is contained in:
@@ -93,9 +93,12 @@ ifeq (,$(LIB_HTTP))
|
||||
$(warning LIB_HTTP not found)
|
||||
endif
|
||||
|
||||
REVISION = $(shell svn info | grep "Revision:" | cut -d ' ' -f 2)
|
||||
$(shell touch site_ansto.c)
|
||||
$(info Revision text is "${REVISION}")
|
||||
#
|
||||
DEBUGFLAGS = -Wall -Wextra -Wno-unused -Wno-comment -Wno-switch
|
||||
CFLAGS = -g $(INCFLAGS) $(DEBUGFLAGS) -std=gnu99
|
||||
CFLAGS = -g $(INCFLAGS) $(DEBUGFLAGS) -std=gnu99 -DREVISION='"R${REVISION}"'
|
||||
|
||||
SRC = ./../..
|
||||
SITENAME = _ansto
|
||||
|
||||
Reference in New Issue
Block a user