/* * TSPSG: TSP Solver and Generator * Copyright (C) 2007-2009 Lёppa * * $Id$ * $URL$ * * This file is part of TSPSG. * * TSPSG is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * TSPSG is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with TSPSG. If not, see . */ #ifndef VERSION_H #define VERSION_H #define VERSIONID "$Id$" #define BUILD_VERSION_MAJOR 0 #define BUILD_VERSION_MINOR 1 #define BUILD_RELEASE 2 // This will only change on releases and will be the same as revision number #define BUILD_NUMBER 65535 // Release number meanings: // 1 -- 3: alpha 1 to 3 // 4 -- 7: beta 1 to 4 // 8 -- 10: rc 1 to 3 // 11 --...: release 1 to ... #if BUILD_NUMBER == 65535 #define BUILD_STATUS (dev build) #elif BUILD_RELEASE < 4 #define BUILD_STATUS (alpha) #elif BUILD_RELEASE < 8 #define BUILD_STATUS (beta) #elif BUILD_RELEASE < 11 #define BUILD_STATUS (rc) #endif // BUILD_NUMBER == 65535 // "Converting" x to quoted string #define QUOTE_X(x) #x #define QUOTE(x) QUOTE_X(x) #ifndef BUILD_STATUS #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE) #else #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE BUILD_STATUS) #endif #endif // VERSION_H