IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 29, 2006, 1:12:04 PM (20 years ago)
Author:
Paul Price
Message:

Adding functions to return version information.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotVersion.c

    r9270 r10292  
    1 # include "psphot.h"
     1#ifdef HAVE_CONFIG_H
     2#include <config.h>
     3#endif
    24
     5#include <stdio.h>
     6#include <pslib.h>
     7#include <psmodules.h>
     8#include "psphot.h"
     9
     10static const char *cvsTag = "$Name: not supported by cvs2svn $";// CVS tag name
     11
     12psString psphotVersion(void)
     13{
     14    psString version = NULL;            // Version, to return
     15    psStringAppend(&version, "%s-%s",PACKAGE_NAME,PACKAGE_VERSION);
     16    return version;
     17}
     18
     19psString psphotVersionLong(void)
     20{
     21    psString version = psphotVersion(); // Version, to return
     22    psString tag = psStringStripCVS(cvsTag, "Name"); // CVS tag
     23    psStringAppend(&version, " (cvs tag %s) %s, %s", tag, __DATE__, __TIME__);
     24    psFree(tag);
     25    return version;
     26}
     27
     28// Defined by RHL; leaving for backwards compatibility.
    329const char *psphotCVSName(void) {
    4    static char *name = "$Name: not supported by cvs2svn $";
    5    return(name);
     30   return cvsTag;
    631}
Note: See TracChangeset for help on using the changeset viewer.