CARDS 2.4.87
Package manager for the NuTyX GNU/Linux distribution
version.h
1 /*
2  * version.h
3  *
4  * Copyright 2015-2017 Thierry Nuttens <tnut@nutyx.org>
5  * Copyright 2017 Gianni Peschiutta <artemia@nutyx.org>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20  * MA 02110-1301, USA.
21  *
22  *
23  */
24 
25 #ifndef VERSION_H
26 #define VERSION_H
27 
28 #define STRINGIZE2(s) #s
29 #define STRINGIZE(s) STRINGIZE2(s)
30 
31 #define VERSION_MAJOR 1
32 #define VERSION_MINOR 0
33 #define VERSION_REVISION 1
34 #define VERSION_BUILD 1
35 
36 #define APP_NAME_STR "flcards"
37 #define VER_FILE_VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION, VERSION_BUILD
38 #define VER_FILE_VERSION_STR STRINGIZE(VERSION_MAJOR) \
39  "." STRINGIZE(VERSION_MINOR) \
40  "." STRINGIZE(VERSION_REVISION)
41 #ifndef VERSION
42  #define APP_NAME_VERSION_STR APP_NAME_STR \
43  " " VER_FILE_VERSION_STR
44 #else
45  #define APP_NAME_VERSION_STR STRINGIZE(VERSION)
46 #endif
47 
48 #endif