IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 9, 2009, 10:17:52 PM (17 years ago)
Author:
Paul Price
Message:

Making version information not dependent upon running configure, but on make.

Location:
trunk/psModules/src/config
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config

    • Property svn:ignore
      •  

        old new  
        77pmErrorCodes.c
        88pmErrorCodes.h
         9pmVersionDefinitions.h
  • trunk/psModules/src/config/pmVersion.c

    r23289 r23794  
    77#include <pslib.h>
    88#include "pmVersion.h"
     9#include "pmVersionDefinitions.h"
    910
    1011#ifndef PSMODULES_VERSION
     
    1819#endif
    1920
    20 #define xstr(s) str(s)
    21 #define str(s) #s
    22 
    2321psString psModulesVersion(void)
    2422{
    2523    char *value = NULL;
    26     psStringAppend(&value, "%s@%s", xstr(PSMODULES_BRANCH), xstr(PSMODULES_VERSION));
     24    psStringAppend(&value, "%s@%s", PSMODULES_BRANCH, PSMODULES_VERSION);
    2725    return value;
    2826}
     
    3028psString psModulesSource(void)
    3129{
    32     return psStringCopy(xstr(PSMODULES_SOURCE));
     30    return psStringCopy(PSMODULES_SOURCE);
    3331}
    3432
Note: See TracChangeset for help on using the changeset viewer.