From 473f20f1acd2cf09b65482086ab5bb65d3a01037 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Fri, 5 Sep 2003 11:37:01 +0000 Subject: [PATCH] Include the version information in the usage output. --- tetrinet.c | 3 +++ version.h | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 version.h diff --git a/tetrinet.c b/tetrinet.c index ad87796..e80289e 100644 --- a/tetrinet.c +++ b/tetrinet.c @@ -14,6 +14,7 @@ #include "server.h" #include "sockets.h" #include "tetris.h" +#include "version.h" /*************************************************************************/ @@ -527,6 +528,8 @@ void partyline_enter(void) void help() { fprintf(stderr, +"Tetrinet " VERSION " - Text-mode tetrinet client\n" +"\n" "Usage: tetrinet [OPTION]... NICK SERVER\n" "\n" "Options (see README for details):\n" diff --git a/version.h b/version.h new file mode 100644 index 0000000..7f6d2f6 --- /dev/null +++ b/version.h @@ -0,0 +1,12 @@ +/* Tetrinet for Linux, by Petr Baudis + * This program is public domain. + * + * Tetrinet version information file. + */ + +#ifndef TETRINET__VERSION_H +#define TETRINET__VERSION_H + +#define VERSION "0.10-pb2" + +#endif -- 2.11.4.GIT