IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 6, 2009, 10:26:32 AM (17 years ago)
Author:
eugene
Message:

passing version info from env vars defined by psbuild

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/eam_branch_20090303/ppStack/src/ppStackVersion.c

    r23143 r23202  
    1010#include "ppStack.h"
    1111
    12 psString ppStackVersion(void)
    13 {
    1412#ifndef PPSTACK_VERSION
    1513#error "PPSTACK_VERSION is not set"
     
    1816#error "PPSTACK_BRANCH is not set"
    1917#endif
    20     return psStringCopy(PPSTACK_BRANCH "@" PPSTACK_VERSION);
     18#ifndef PPSTACK_SOURCE
     19#error "PPSTACK_SOURCE is not set"
     20#endif
     21
     22#define xstr(s) str(s)
     23#define str(s) #s
     24
     25psString ppStackVersion(void)
     26{
     27    char *value = NULL;
     28    psStringAppend(&value, "%s@%s", xstr(PPSTACK_BRANCH), xstr(PPSTACK_VERSION));
     29    return value;
    2130}
    2231
    2332psString ppStackSource(void)
    2433{
    25 #ifndef PPSTACK_SOURCE
    26 #error "PPSTACK_SOURCE is not set"
    27 #endif
    28     return psStringCopy(PPSTACK_SOURCE);
     34    return psStringCopy(xstr(PPSTACK_SOURCE));
    2935}
    3036
Note: See TracChangeset for help on using the changeset viewer.