![]() ![]() |
![]() |
File: [Development] / JSOC / base / jsoc_version.h
(download)
Revision: 1.57, Tue Apr 24 21:26:17 2012 UTC (11 years, 1 month ago) by arta Branch: MAIN CVS Tags: Ver_6-2, NetDRMS_Ver_6-2 Changes since 1.56: +2 -2 lines Bump version to release 6.2 |
/* * jsoc_version.h * * Contains the master version, release and build number definition. * * Responsible: CM * * NOTE: !!!!!!!! This should only be modified by the CM !!!!!!!!!!!! * */ #ifndef JSOC_VERSION_INCL #define JSOC_VERSION_INCL 1 #define jsoc_version "V6R2" #define jsoc_vers_num (602) static inline const char *jsoc_getversion(char *verstr, int size, int *isdev) { char *vers = strdup(jsoc_version); char *pc = NULL; int len = strlen(jsoc_version); if (isdev) { *isdev = 0; } if ((pc = strchr(vers, 'R')) != NULL) { *pc = '\0'; } if (jsoc_version[len - 1] == 'X') { if (isdev) { *isdev = 1; } vers[len - 1] = '\0'; } snprintf(verstr, size, "%s.%s", vers + 1, pc + 1); return jsoc_version; } #endif
Karen Tian |
Powered by ViewCVS 0.9.4 |