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

    r35097 r38034  
    1 if HAVE_SVNVERSION
    2 IPPTOPSPS_VERSION=`$(SVNVERSION) ..`
    3 else
    4 IPPTOPSPS_VERSION="UNKNOWN"
    5 endif
    6 
    7 if HAVE_SVN
    8 IPPTOPSPS_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 }'`
    9 IPPTOPSPS_SOURCE=`$(SVN) info | $(SED) -n -e 's/Repository UUID: // p'`
    10 else
    11 IPPTOPSPS_BRANCH="UNKNOWN"
    12 IPPTOPSPS_SOURCE="UNKNOWN"
    13 endif
    141
    152# Force recompilation of ippToPspsVersion.c, since it gets the version information
    163Version.c: VersionDefinitions.h
    174VersionDefinitions.h: VersionDefinitions.h.in FORCE
    18         -$(RM) VersionDefinitions.h
    19         $(SED) -e "s|@IPPTOPSPS_VERSION@|\"$(IPPTOPSPS_VERSION)\"|" -e "s|@IPPTOPSPS_BRANCH@|\"$(IPPTOPSPS_BRANCH)\"|" -e "s|@IPPTOPSPS_SOURCE@|\"$(IPPTOPSPS_SOURCE)\"|" VersionDefinitions.h.in > VersionDefinitions.h
     5        pslib-setsvnversion.pl IPPTOPSPS VersionDefinitions.h.in VersionDefinitions.h
    206FORCE: ;
    217
Note: See TracChangeset for help on using the changeset viewer.