IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10492


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

added -version option

Location:
trunk/psphot/src
Files:
2 edited

Legend:

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

    r10491 r10492  
    1515        psString version;
    1616        version = psphotVersionLong();    fprintf (stdout, "%s", version); psFree (version);
    17 # if (HAVE_KAPA)
    18         fprintf (stdout, " with libkapa\n");
    19 # else 
    20         fprintf (stdout, " WITHOUT libkapa\n");
    21 # endif
    2217        version = psModulesVersionLong(); fprintf (stdout, "%s\n", version); psFree (version);
    2318        version = psLibVersionLong();     fprintf (stdout, "%s\n", version); psFree (version);
    24        
    25 # if (HAVE_KAPA)
    26         version = ohana_version();        fprintf (stdout, "%s\n", version); free (version);
    27         version = libdvo_version();       fprintf (stdout, "%s\n", version); free (version);
    28 # endif
    2919        exit (0);
    3020    }
  • 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.