Incorporate svnversion output in usage()

This commit is contained in:
ehouse 2006-05-14 14:47:32 +00:00
parent 4bb82554e5
commit 94b46bc6c6
2 changed files with 5 additions and 1 deletions

View file

@ -29,6 +29,9 @@ endif
DO_CURSES = -DPLATFORM_NCURSES
DO_GTK = -DPLATFORM_GTK
SVNDEF = -D'SVN_REV="$(shell svnversion -n .)"'
CFLAGS += $(SVNDEF)
ifdef CURSES_ONLY
DO_GTK =
# := avoids recursion

View file

@ -209,7 +209,7 @@ static void
usage( char* appName, char* msg )
{
if ( msg != NULL ) {
fprintf( stderr, "Error: %s\n\n", msg );
fprintf( stderr, "Error: %s\n\n", msg );
}
fprintf( stderr, "usage: %s \n"
#if defined PLATFORM_GTK && defined PLATFORM_NCURSES
@ -251,6 +251,7 @@ usage( char* appName, char* msg )
"\tserver: ./xwords -d dict.xwd -s -a localhost -p 10999 -r Eric -N\n"
"\tclient: ./xwords -d dict.xwd -a localhost -p 10999 -r Kati\n"
, appName );
fprintf( stderr, "\n(revision: %s)\n", SVN_REV);
exit(1);
}