IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 29, 2006, 11:33:09 AM (19 years ago)
Author:
Paul Price
Message:

Adding function to return long version information, including CVS tag name, whether psDB was included, and the date and time of compilation. Added function to strip CVS keywords from the keyword/value string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psConfigure.c

    r10284 r10286  
    1313 *  @author Robert DeSonia, MHPCC
    1414 *
    15  *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    16  *  @date $Date: 2006-11-29 20:24:19 $
     15 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     16 *  @date $Date: 2006-11-29 21:33:09 $
    1717 *
    1818 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3434static FILE *memCheckFile = NULL;       // File to which to write results of mem check
    3535
     36static const char *cvsTag = "$Name: not supported by cvs2svn $"; // CVS tag name
     37
    3638psString psLibVersion(void)
    3739{
    38     psString version = NULL;
    39     psStringAppend(&version, "%s-v%s",PACKAGE_NAME,PACKAGE_VERSION);
     40    psString version = NULL;            // Version, to return
     41    psStringAppend(&version, "%s-%s",PACKAGE_NAME,PACKAGE_VERSION);
     42    return version;
     43}
     44
     45psString psLibVersionLong(void)
     46{
     47    psString version = psLibVersion();    // Version, to return
     48    psString tag = psStringStripCVS(cvsTag, "Name"); // CVS tag
     49
     50    psStringAppend(&version, " (cvs tag %s) compiled %s at %s with"
     51                   #ifdef OMIT_PSDB
     52                   "out"
     53                   #endif
     54                   " psDB", tag, __DATE__, __TIME__);
     55
     56    psFree(tag);
    4057    return version;
    4158}
Note: See TracChangeset for help on using the changeset viewer.