IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

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

Location:
trunk/ppStats/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStats/src

    • Property svn:ignore
      •  

        old new  
        1010config.h.in
        1111stamp-h1
         12ppStatsVersionDefinitions.h
  • trunk/ppStats/src/ppStatsVersion.c

    r23289 r23802  
    11#include "ppStatsInternal.h"
     2#include "ppStatsVersionDefinitions.h"
    23
    34#ifndef PPSTATS_VERSION
     
    1112#endif
    1213
    13 #define xstr(s) str(s)
    14 #define str(s) #s
    15 
    1614psString ppStatsVersion(void)
    1715{
    1816    char *value = NULL;
    19     psStringAppend(&value, "%s@%s", xstr(PPSTATS_BRANCH), xstr(PPSTATS_VERSION));
     17    psStringAppend(&value, "%s@%s", PPSTATS_BRANCH, PPSTATS_VERSION);
    2018    return value;
    2119}
     
    2321psString ppStatsSource(void)
    2422{
    25     return psStringCopy(xstr(PPSTATS_SOURCE));
     23    return psStringCopy(PPSTATS_SOURCE);
    2624}
    2725
Note: See TracChangeset for help on using the changeset viewer.