mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
Print svn rev number as part of usage()
This commit is contained in:
parent
cd397813c8
commit
ad2acdf0b6
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue