From a0e61692ec8ad476bc08f035ac65f3b84a64da73 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Mon, 30 Sep 2002 02:15:54 +0000 Subject: [PATCH] Allow the 'v' command to identify the beta version in a way that won't trigger a full rebuild. --- src/version.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/version.c b/src/version.c index 3b0c8077b..0091406fb 100644 --- a/src/version.c +++ b/src/version.c @@ -14,6 +14,8 @@ #include "patchlevel.h" #endif +#define BETA_INFO " [beta12]" + /* fill and return the given buffer with the nethack version string */ char * getversionstring(buf) @@ -27,7 +29,12 @@ doversion() { char buf[BUFSZ]; - pline(getversionstring(buf)); + pline("%s%s", getversionstring(buf), +#if defined(BETA) && defined(BETA_INFO) + BETA_INFO); +#else + ""); +#endif return 0; } -- 2.40.0