IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 3, 2009, 1:00:45 PM (17 years ago)
Author:
Paul Price
Message:

Put together system to identify the version that was built. psLibVersion() now returns BRANCH@VERSION: e.g., trunk@22747M. A new function, psLibSource() returns SOURCE: e.g., 60eb6cdc-a59c-4636-a4e0-dba66a9721fd. psLibVersionLong() now returns a much longer string with the versions of the dependent libraries and other notes: e.g., psLib trunk@22747M from 60eb6cdc-a59c-4636-a4e0-dba66a9721fd, built Mar 3 2009, 12:46:47 with cfitsio (3.100), gsl (1.6), fftw (fftw-3.0.1), mysql (4.1.10a) unoptimised with trace. I have set up psConfigure.c (which defines these functions) to be built every time 'make' is called. This might be annoying, but it's necessary so that it receives up-to-date values via svnversion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/Makefile.am

    r19056 r23115  
    33noinst_LTLIBRARIES = libpslibsys.la
    44
    5 libpslibsys_la_CPPFLAGS = $(SRCINC) $(PSLIB_CFLAGS) $(CFITSIO_CFLAGS)
     5PSLIB_VERSION=`if [ -e ../../VERSION ]; then cat ../../VERSION; else svnversion; fi`
     6PSLIB_BRANCH=`if [ -e ../../BRANCH ]; then cat ../../BRANCH; else svn info | sed -n -e '/URL:/ h' -e '/Repository Root:/ { x; H; x; s|Repository Root: \(.*\)\nURL: \1\(.*\)|\2| ; s|^/|| ; s|/[a-zA-Z]*/src.*|| ; p }'; fi`
     7PSLIB_SOURCE=`if [ -e ../../SOURCE ]; then cat ../../SOURCE; else svn info | sed -n -e 's/Repository UUID: // p'; fi`
     8
     9# Force recompilation of psConfigure.c, since it gets the version information
     10psConfigure.c: FORCE
     11        touch psConfigure.c
     12FORCE: ;
     13
     14libpslibsys_la_CPPFLAGS = $(SRCINC) $(PSLIB_CFLAGS) $(CFITSIO_CFLAGS) -DPSLIB_VERSION=\"$(PSLIB_VERSION)\" -DPSLIB_BRANCH=\"$(PSLIB_BRANCH)\" -DPSLIB_SOURCE=\"$(PSLIB_SOURCE)\"
    615libpslibsys_la_SOURCES = \
    716        psAbort.c \
Note: See TracChangeset for help on using the changeset viewer.