1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

added git commit and tag to version identifier

git-svn-id: https://zerberus.eonerc.rwth-aachen.de:8443/svn/s2ss/trunk@16 8ec27952-4edc-4aab-86aa-e87bb2611832
This commit is contained in:
Steffen Vogel 2014-06-05 09:34:43 +00:00
parent 1dd7ff48f9
commit e79c5335d1
4 changed files with 14 additions and 7 deletions

6
.gitignore vendored
View file

@ -1,6 +1,3 @@
bin/*
build/*
dep/*
doc/html/
doc/latex/
@ -8,3 +5,6 @@ doc/latex/
*.d
*.o
*~
server
test

View file

@ -6,9 +6,12 @@ VPATH = src
CC = gcc
RM = rm -f
GIT_TAG = $(shell git describe --tags)
GIT_REV = $(shell git rev-parse --short HEAD)
LDFLAGS = -pthread -lrt
CFLAGS = -std=c99 -Iinclude/ -D_XOPEN_SOURCE=500
CFLAGS += -D__GIT_REV__='"$(GIT_REV)"' -D__GIT_TAG__='"$(GIT_TAG)"'
ifdef (DEBUG)
CFLAGS += -DDEBUG=$(DEBUG) -g

View file

@ -9,7 +9,7 @@
#define _CONFIG_H_
/// The version number of the s2ss server
#define VERSION "0.01"
#define VERSION __GIT_TAG__ "-" __GIT_REV__
/// The Procotol version determines the format of a struct msg
#define PROTOCOL 0
/// The name of this node

View file

@ -64,15 +64,19 @@ int main(int argc, char *argv[])
{
atexit(&quit);
assert(0);
if (argc != 1) {
printf("Usage: s2ss [config]\n");
printf(" config is an optional path to a configuration file\n\n");
printf("s2ss Simulator2Simulator Server v%s\n", VERSION);
printf("Copyright 2014, Institute for Automation of Complex Power Systems, EONERC\n");
printf("Simulator2Simulator Server %s\n", VERSION);
printf(" Build: %s %s\n", __DATE__, __TIME__);
printf(" Contact: Steffen Vogel <stvogel@eonerc.rwth-aachen.de\n");
printf(" Copyright: 2014, Institute for Automation of Complex Power Systems, EONERC\n");
exit(EXIT_FAILURE);
}
print(INFO, "Good morning! This is s2ss v%s", VERSION);
print(INFO, "Good morning! This is s2ss %s", VERSION);
init(); /* Setup paths and nodes manually */