mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +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_CURSES = -DPLATFORM_NCURSES
|
||||||
DO_GTK = -DPLATFORM_GTK
|
DO_GTK = -DPLATFORM_GTK
|
||||||
|
|
||||||
|
SVNDEF = -D'SVN_REV="$(shell svnversion -n .)"'
|
||||||
|
CFLAGS += $(SVNDEF)
|
||||||
|
|
||||||
ifdef CURSES_ONLY
|
ifdef CURSES_ONLY
|
||||||
DO_GTK =
|
DO_GTK =
|
||||||
# := avoids recursion
|
# := avoids recursion
|
||||||
|
|
|
@ -209,7 +209,7 @@ static void
|
||||||
usage( char* appName, char* msg )
|
usage( char* appName, char* msg )
|
||||||
{
|
{
|
||||||
if ( msg != NULL ) {
|
if ( msg != NULL ) {
|
||||||
fprintf( stderr, "Error: %s\n\n", msg );
|
fprintf( stderr, "Error: %s\n\n", msg );
|
||||||
}
|
}
|
||||||
fprintf( stderr, "usage: %s \n"
|
fprintf( stderr, "usage: %s \n"
|
||||||
#if defined PLATFORM_GTK && defined PLATFORM_NCURSES
|
#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"
|
"\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"
|
"\tclient: ./xwords -d dict.xwd -a localhost -p 10999 -r Kati\n"
|
||||||
, appName );
|
, appName );
|
||||||
|
fprintf( stderr, "\n(revision: %s)\n", SVN_REV);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue