From patchwork Sun Dec 28 16:33:02 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 5358 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by open-mesh.net (8.13.4/8.13.4/Debian-3sarge3) with SMTP id mBSGdIdZ027992 for ; Sun, 28 Dec 2008 17:39:19 +0100 Received: (qmail invoked by alias); 28 Dec 2008 16:33:05 -0000 Received: from unknown (EHLO localhost) [88.130.174.27] by mail.gmx.net (mp018) with SMTP; 28 Dec 2008 17:33:05 +0100 X-Authenticated: #15668376 X-Provags-ID: V01U2FsdGVkX1/EeJF31EPEhEc0J00haw3SecmbaSQ6pSXbuXJ9IQ pCUSLO3c7JzjWd From: Sven Eckelmann To: b.a.t.m.a.n@open-mesh.net Date: Sun, 28 Dec 2008 17:33:02 +0100 Message-Id: <1230481982-8960-1-git-send-email-sven.eckelmann@gmx.de> X-Mailer: git-send-email 1.6.0.6 In-Reply-To: <200812281730.53628.sven.eckelmann@gmx.de> References: <200812281730.53628.sven.eckelmann@gmx.de> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.51 Subject: [B.A.T.M.A.N.] [PATCH] Detect unstable version in SOURCE_VERSION X-BeenThere: b.a.t.m.a.n@open-mesh.net X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 16:39:20 -0000 The SOURCE_VERSION consists of a version part and the actual status of this version (called postfix). Both parts are seperated by a dash. This seperator dash can be detected during runtime and can enable the unstable warning instead of removing this warning in every release. Before releasing the a new stable version the release manager must remove the postfix of SOURCE_VERSION in batman.h, check INSTALL, THANKS and README and then create the tag in the repository as usual. Afterwards the development branch should change the SOURCE_VERSION to the upcoming version number including a postfix starting with a dash that informs the user that it is "unstable" and in development. This could be for example "-dev", "-pre-alpha", "-beta" or "-rc1". Signed-off-by: Sven Eckelmann --- batman/posix/init.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/batman/posix/init.c b/batman/posix/init.c index c79c010..1447178 100644 --- a/batman/posix/init.c +++ b/batman/posix/init.c @@ -249,7 +249,8 @@ void apply_init_args( int argc, char *argv[] ) { stop = 0; prog_name = argv[0]; -/* printf( "WARNING: You are using the unstable batman branch. If you are interested in *using* batman get the latest stable release !\n" );*/ + if ( strstr( SOURCE_VERSION, "-" ) != NULL ) + printf( "WARNING: You are using the unstable batman branch. If you are interested in *using* batman get the latest stable release !\n" ); while ( ( optchar = getopt_long( argc, argv, "a:A:bcd:hHio:g:p:r:s:vV", long_options, &option_index ) ) != -1 ) {