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

Location:
trunk/ppBackground/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppBackground/src

    • Property svn:ignore
      •  

        old new  
        1010stamp-h1
        1111config.h.in
        12 
         12ppBackgroundVersionDefinitions.h.tmp
  • trunk/ppBackground/src/Makefile.am

    r36580 r38034  
    11bin_PROGRAMS = ppBackground ppBackgroundStack
    2 
    3 if HAVE_SVNVERSION
    4 PPBACKGROUND_VERSION=`$(SVNVERSION) ..`
    5 else
    6 PPBACKGROUND_VERSION="UNKNOWN"
    7 endif
    8 
    9 if HAVE_SVN
    10 PPBACKGROUND_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 }'`
    11 PPBACKGROUND_SOURCE=`$(SVN) info | $(SED) -n -e 's/Repository UUID: // p'`
    12 else
    13 PPBACKGROUND_BRANCH="UNKNOWN"
    14 PPBACKGROUND_SOURCE="UNKNOWN"
    15 endif
    162
    173# Force recompilation of ppBackgroundVersion.c, since it gets the version information
    184ppBackgroundVersion.c: ppBackgroundVersionDefinitions.h
    195ppBackgroundVersionDefinitions.h: ppBackgroundVersionDefinitions.h.in FORCE
    20         -$(RM) ppBackgroundVersionDefinitions.h
    21         $(SED) -e "s|@PPBACKGROUND_VERSION@|\"$(PPBACKGROUND_VERSION)\"|" -e "s|@PPBACKGROUND_BRANCH@|\"$(PPBACKGROUND_BRANCH)\"|" -e "s|@PPBACKGROUND_SOURCE@|\"$(PPBACKGROUND_SOURCE)\"|" ppBackgroundVersionDefinitions.h.in > ppBackgroundVersionDefinitions.h
     6        pslib-setsvnversion.pl PPBACKGROUND ppBackgroundVersionDefinitions.h.in ppBackgroundVersionDefinitions.h
    227FORCE: ;
    238
Note: See TracChangeset for help on using the changeset viewer.