Print svn rev number as part of usage()

This commit is contained in:
ehouse 2007-02-07 11:56:30 +00:00
parent cd397813c8
commit ad2acdf0b6
2 changed files with 2 additions and 1 deletions

View file

@ -28,7 +28,7 @@ SRC = xwrelay.cpp \
OBJ = $(patsubst %.cpp,%.o,$(SRC))
LDFLAGS += -pthread -g -lmcheck
CPPFLAGS += -g -Wall
CPPFLAGS += -g -Wall -DSVN_REV=\"$(shell svnversion -n .)\"
# turn on semaphore debugging
# CPPFLAGS += -DDEBUG_LOCKS

View file

@ -414,6 +414,7 @@ usage( char* arg0 )
"\t-p <port> (port to listen on)\\\n"
"\t-t <nWorkerThreads> (how many worker threads to use)\\\n"
);
fprintf( stderr, "svn rev. %s\n", SVN_REV );
}
/* sockets that need to be closable from interrupt handler */