IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10491


Ignore:
Timestamp:
Dec 5, 2006, 5:36:49 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

    r10437 r10491  
    1010        psError(PSPHOT_ERR_ARGUMENTS, true, "Too few arguments: %d", argc);
    1111        return NULL;
     12    }
     13
     14    if ((N = psArgumentGet (argc, argv, "-version"))) {
     15        psString version;
     16        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
     22        version = psModulesVersionLong(); fprintf (stdout, "%s\n", version); psFree (version);
     23        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
     29        exit (0);
    1230    }
    1331
  • trunk/psphot/src/psphotVersion.c

    r10292 r10491  
    1 #ifdef HAVE_CONFIG_H
    2 #include <config.h>
    3 #endif
    4 
    5 #include <stdio.h>
    6 #include <pslib.h>
    7 #include <psmodules.h>
    81#include "psphot.h"
    92
Note: See TracChangeset for help on using the changeset viewer.