IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 5, 2006, 5:53:33 PM (20 years ago)
Author:
eugene
Message:

added -version option

File:
1 edited

Legend:

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

    r10491 r10492  
    11#include "psphot.h"
     2
     3# if (HAVE_KAPA)
     4# include <kapa.h>
     5# endif
    26
    37static const char *cvsTag = "$Name: not supported by cvs2svn $";// CVS tag name
     
    1519    psString tag = psStringStripCVS(cvsTag, "Name"); // CVS tag
    1620    psStringAppend(&version, " (cvs tag %s) %s, %s", tag, __DATE__, __TIME__);
     21
     22# if (HAVE_KAPA)
     23    psString ohanaVersion = psStringStripCVS (ohana_version(), "Name");
     24    psString libdvoVersion = psStringStripCVS (libdvo_version(), "Name");
     25
     26    psStringAppend (&version, " with libkapa (ohana %s, libdvo: %s)\n", ohanaVersion, libdvoVersion);
     27    psFree (ohanaVersion);
     28    psFree (libdvoVersion);
     29# else 
     30    psStringAppend (&version, " WITHOUT libkapa\n");
     31# endif
     32
    1733    psFree(tag);
    1834    return version;
Note: See TracChangeset for help on using the changeset viewer.