IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

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

Location:
trunk/ppStack/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src

    • Property svn:ignore
      •  

        old new  
        99config.h.in
        1010stamp-h1
         11ppStackVersionDefinitions.h
  • trunk/ppStack/src/ppStackVersion.c

    r23289 r23801  
    1010
    1111#include "ppStack.h"
     12#include "ppStackVersionDefinitions.h"
    1213
    1314#ifndef PPSTACK_VERSION
     
    2122#endif
    2223
    23 #define xstr(s) str(s)
    24 #define str(s) #s
    25 
    2624psString ppStackVersion(void)
    2725{
    2826    char *value = NULL;
    29     psStringAppend(&value, "%s@%s", xstr(PPSTACK_BRANCH), xstr(PPSTACK_VERSION));
     27    psStringAppend(&value, "%s@%s", PPSTACK_BRANCH, PPSTACK_VERSION);
    3028    return value;
    3129}
     
    3331psString ppStackSource(void)
    3432{
    35     return psStringCopy(xstr(PPSTACK_SOURCE));
     33    return psStringCopy(PPSTACK_SOURCE);
    3634}
    3735
Note: See TracChangeset for help on using the changeset viewer.