]> granicus.if.org Git - nethack/commitdiff
Allow the 'v' command to identify the beta version
authornethack.allison <nethack.allison>
Mon, 30 Sep 2002 02:15:54 +0000 (02:15 +0000)
committernethack.allison <nethack.allison>
Mon, 30 Sep 2002 02:15:54 +0000 (02:15 +0000)
in a way that won't trigger a full rebuild.

src/version.c

index 3b0c8077bca27196cdab93b282376a5237e11800..0091406fb1e14364fc6ad9b93a2f000e56aeb684 100644 (file)
@@ -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;
 }