IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

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

Location:
trunk/pswarp/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src

    • Property svn:ignore
      •  

        old new  
        1313config.h.in
        1414stamp-h1
         15pswarpVersionDefinitions.h
  • trunk/pswarp/src/pswarpVersion.c

    r23595 r23806  
    2020#include <ppStats.h>
    2121
    22 psString pswarpVersion(void)
    23 {
     22#include "pswarp.h"
     23#include "pswarpVersionDefinitions.h"
     24
    2425#ifndef PSWARP_VERSION
    2526#error "PSWARP_VERSION is not set"
     
    2829#error "PSWARP_BRANCH is not set"
    2930#endif
    30     return psStringCopy(PSWARP_BRANCH "@" PSWARP_VERSION);
     31#ifndef PSWARP_SOURCE
     32#error "PSWARP_SOURCE is not set"
     33#endif
     34
     35psString pswarpVersion(void)
     36{
     37    char *value = NULL;
     38    psStringAppend(&value, "%s@%s", PSWARP_BRANCH, PSWARP_VERSION);
     39    return value;
    3140}
    3241
    3342psString pswarpSource(void)
    3443{
    35 #ifndef PSWARP_SOURCE
    36 #error "PSWARP_SOURCE is not set"
    37 #endif
    3844    return psStringCopy(PSWARP_SOURCE);
    3945}
Note: See TracChangeset for help on using the changeset viewer.