IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 28, 2015, 7:10:18 AM (11 years ago)
Author:
eugene
Message:

replace Makefile.am sed code with pslib-setsvnversion

File:
1 edited

Legend:

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

    r25973 r38034  
    11bin_PROGRAMS = ppbgrestore
    2 
    32
    43noinst_HEADERS = \
    54        ppbgrestore.h
    65
    7 if HAVE_SVNVERSION
    8 PPBGRESTORE_VERSION=`$(SVNVERSION) ..`
    9 else
    10 PPBGRESTORE_VERSION="UNKNOWN"
    11 endif
    12 
    13 if HAVE_SVN
    14 PPBGRESTORE_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 }'`
    15 PPBGRESTORE_SOURCE=`$(SVN) info | $(SED) -n -e 's/Repository UUID: // p'`
    16 else
    17 PPBGRESTORE_BRANCH="UNKNOWN"
    18 PPBGRESTORE_SOURCE="UNKNOWN"
    19 endif
    20 
    216# Force recompilation of ppbgrestoreVersion.c, since it gets the version information
    227ppbgrestoreVersion.c: ppbgrestoreVersionDefinitions.h
    238ppbgrestoreVersionDefinitions.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
     9        pslib-setsvnversion.pl PPBGRESTORE ppbgrestoreVersionDefinitions.h.in ppbgrestoreVersionDefinitions.h
    2610FORCE: ;
    2711
Note: See TracChangeset for help on using the changeset viewer.