mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +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
|
||||||
|
|
|
@ -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