From 272d3026e2643cec14a2ab9148fbd7c90672a022 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Mon, 21 Aug 2017 21:30:42 -0400 Subject: [PATCH] Can change "alpha" to "beta" in welcome screen if IS_ALPHA > 1... ... and don't add "x" and date when IS_ALPHA is turned off. --- src/Audacity.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/Audacity.h b/src/Audacity.h index d02f5e49d..505542ced 100644 --- a/src/Audacity.h +++ b/src/Audacity.h @@ -33,9 +33,12 @@ #endif -// We only do alpha builds and release versions. +// We only do alpha builds, beta builds, and release versions. // Most of the time we're in development, so IS_ALPHA should be defined // to 1. +// Its value may be more than 1 for pre-release "Beta" builds that differ only in the +// welcome screen. +// Use "#if IS_ALPHA" not #ifdef #define IS_ALPHA 1 // Increment as appropriate every time we release a NEW version. @@ -44,11 +47,13 @@ #define AUDACITY_REVISION 0 #define AUDACITY_MODLEVEL 0 -#if IS_ALPHA +#if IS_ALPHA > 1 + #define AUDACITY_SUFFIX wxT("-beta-") __TDATE__ +#elif IS_ALPHA #define AUDACITY_SUFFIX wxT("-alpha-") __TDATE__ #else - //#define AUDACITY_SUFFIX wxT("") // for a stable release - #define AUDACITY_SUFFIX wxT("x ") __TDATE__ + #define AUDACITY_SUFFIX wxT("") // for a stable release + //#define AUDACITY_SUFFIX wxT("x ") __TDATE__ #endif #define AUDACITY_MAKESTR( x ) #x