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:
parent
1dd7ff48f9
commit
e79c5335d1
4 changed files with 14 additions and 7 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -1,6 +1,3 @@
|
|||
bin/*
|
||||
build/*
|
||||
dep/*
|
||||
|
||||
doc/html/
|
||||
doc/latex/
|
||||
|
@ -8,3 +5,6 @@ doc/latex/
|
|||
*.d
|
||||
*.o
|
||||
*~
|
||||
|
||||
server
|
||||
test
|
||||
|
|
3
Makefile
3
Makefile
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
Loading…
Add table
Reference in a new issue