Changeset 23117 for trunk/psModules/src/config/pmVersion.c
- Timestamp:
- Mar 3, 2009, 3:06:41 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/config/pmVersion.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmVersion.c
r10291 r23117 8 8 #include "pmVersion.h" 9 9 10 static const char *cvsTag = "$Name: not supported by cvs2svn $";// CVS tag name11 12 10 psString psModulesVersion(void) 13 11 { 14 psString version = NULL; // Version, to return 15 psStringAppend(&version, "%s-%s",PACKAGE_NAME,PACKAGE_VERSION); 16 return version; 12 #ifndef PSMODULES_VERSION 13 #error "PSMODULES_VERSION is not set" 14 #endif 15 #ifndef PSMODULES_BRANCH 16 #error "PSMODULES_BRANCH is not set" 17 #endif 18 return psStringCopy(PSMODULES_BRANCH "@" PSMODULES_VERSION); 17 19 } 20 21 psString psModulesSource(void) 22 { 23 #ifndef PSMODULES_SOURCE 24 #error "PSMODULES_SOURCE is not set" 25 #endif 26 return psStringCopy(PSMODULES_SOURCE); 27 } 28 18 29 19 30 psString psModulesVersionLong(void) 20 31 { 21 psString version = psModulesVersion(); // Version, to return22 psString tag = psStringStripCVS(cvsTag, "Name"); // CVS tag32 psString version = psModulesVersion(); // Version, to return 33 psString source = psModulesSource(); // Source 23 34 24 psStringAppend(&version, " (cvs tag %s) %s, %s", tag, __DATE__, __TIME__); 35 psStringPrepend(&version, "psModules "); 36 psStringAppend(&version, " from %s, built %s, %s", source, __DATE__, __TIME__); 37 psFree(source); 25 38 26 psFree(tag); 39 #ifdef __OPTIMIZE__ 40 psStringAppend(&version, " optimised"); 41 #else 42 psStringAppend(&version, " unoptimised"); 43 #endif 44 27 45 return version; 28 } 46 };
Note:
See TracChangeset
for help on using the changeset viewer.
