mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
Incorporate svnversion output in usage()
This commit is contained in:
parent
4bb82554e5
commit
94b46bc6c6
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue