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/ppSmooth/src/Makefile.am

    r25976 r38034  
    33noinst_HEADERS = ppSmooth.h
    44
    5 if HAVE_SVNVERSION
    6 PPSMOOTH_VERSION=`$(SVNVERSION) ..`
    7 else
    8 PPSMOOTH_VERSION="UNKNOWN"
    9 endif
    10 
    11 if HAVE_SVN
    12 PPSMOOTH_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 }'`
    13 PPSMOOTH_SOURCE=`$(SVN) info | $(SED) -n -e 's/Repository UUID: // p'`
    14 else
    15 PPSMOOTH_BRANCH="UNKNOWN"
    16 PPSMOOTH_SOURCE="UNKNOWN"
    17 endif
    18 
    195# Force recompilation of ppSmoothVersion.c, since it gets the version information
    206ppSmoothVersion.c: ppSmoothVersionDefinitions.h
    217ppSmoothVersionDefinitions.h: ppSmoothVersionDefinitions.h.in FORCE
    22         -$(RM) ppSmoothVersionDefinitions.h
    23         $(SED) -e "s|@PPSMOOTH_VERSION@|\"$(PPSMOOTH_VERSION)\"|" -e "s|@PPSMOOTH_BRANCH@|\"$(PPSMOOTH_BRANCH)\"|" -e "s|@PPSMOOTH_SOURCE@|\"$(PPSMOOTH_SOURCE)\"|" ppSmoothVersionDefinitions.h.in > ppSmoothVersionDefinitions.h
     8        pslib-setsvnversion.pl PPSMOOTH ppSmoothVersionDefinitions.h.in ppSmoothVersionDefinitions.h
    249FORCE: ;
    2510
Note: See TracChangeset for help on using the changeset viewer.