IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 30, 2009, 3:47:06 PM (17 years ago)
Author:
bills
Message:

flesh out versioning and cleanup functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppbgrestore/src/Makefile.am

    r25972 r25973  
    44noinst_HEADERS = \
    55        ppbgrestore.h
     6
     7if HAVE_SVNVERSION
     8PPBGRESTORE_VERSION=`$(SVNVERSION) ..`
     9else
     10PPBGRESTORE_VERSION="UNKNOWN"
     11endif
     12
     13if HAVE_SVN
     14PPBGRESTORE_BRANCH=`$(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 }'`
     15PPBGRESTORE_SOURCE=`$(SVN) info | $(SED) -n -e 's/Repository UUID: // p'`
     16else
     17PPBGRESTORE_BRANCH="UNKNOWN"
     18PPBGRESTORE_SOURCE="UNKNOWN"
     19endif
     20
     21# Force recompilation of ppbgrestoreVersion.c, since it gets the version information
     22ppbgrestoreVersion.c: ppbgrestoreVersionDefinitions.h
     23ppbgrestoreVersionDefinitions.h: ppbgrestoreVersionDefinitions.h.in FORCE
     24        -$(RM) ppbgrestoreVersionDefinitions.h
     25        $(SED) -e "s|@PPBGRESTORE_VERSION@|\"$(PPBGRESTORE_VERSION)\"|" -e "s|@PPBGRESTORE_BRANCH@|\"$(PPBGRESTORE_BRANCH)\"|" -e "s|@PPBGRESTORE_SOURCE@|\"$(PPBGRESTORE_SOURCE)\"|" ppbgrestoreVersionDefinitions.h.in > ppbgrestoreVersionDefinitions.h
     26FORCE: ;
     27
     28
     29BUILT_SOURCES = ppbgrestoreVersionDefinitions.h
    630
    731ppbgrestore_CPPFLAGS = $(PSPHOT_CFLAGS)  $(PSMODULE_CFLAGS) $(PSLIB_CFLAGS)
Note: See TracChangeset for help on using the changeset viewer.