ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/base/jsoc_version.h
Revision: 1.23
Committed: Fri Jan 30 00:07:11 2009 UTC (14 years, 7 months ago) by arta
Content type: text/plain
Branch: MAIN
CVS Tags: NetDRMS_Ver_2-0a1
Changes since 1.22: +2 -2 lines
Log Message:
Now change the version number to the development form.

File Contents

# User Rev Content
1 arta 1.1 /*
2     * jsoc_version.h
3     *
4     * Contains the master version, release and build number definition.
5     *
6     * Responsible: CM
7     *
8     * NOTE: !!!!!!!! This should only be modified by the CM !!!!!!!!!!!!
9     *
10     */
11    
12     #ifndef JSOC_VERSION_INCL
13    
14     #define JSOC_VERSION_INCL 1
15    
16 arta 1.23 #define jsoc_version "V5R0X"
17     #define jsoc_vers_num (-500)
18 arta 1.1
19 arta 1.21
20     static inline const char *jsoc_getversion(char *verstr, int size, int *isdev)
21     {
22     char *vers = strdup(jsoc_version);
23     char *pc = NULL;
24     int len = strlen(jsoc_version);
25    
26     if (isdev)
27     {
28     *isdev = 0;
29     }
30    
31     if ((pc = strchr(vers, 'R')) != NULL)
32     {
33     *pc = '\0';
34     }
35    
36     if (jsoc_version[len - 1] == 'X')
37     {
38     if (isdev)
39     {
40     *isdev = 1;
41     }
42    
43     vers[len - 1] = '\0';
44     }
45    
46     snprintf(verstr, size, "%s.%s", vers + 1, pc + 1);
47    
48     return jsoc_version;
49     }
50    
51 arta 1.1 #endif
52