IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38016


Ignore:
Timestamp:
Mar 26, 2015, 3:12:16 PM (11 years ago)
Author:
eugene
Message:

convert to pslib-setsvnversion.pl to parse svn version info

Location:
branches/eam_branches/ipp-20150326/psLib
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150326/psLib/Makefile.am

    r11493 r38016  
    11SUBDIRS = m4 $(SUBDIR)
    22
    3 bin_SCRIPTS = pslib-config 
     3bin_SCRIPTS = pslib-config
    44pkgconfigdir = $(libdir)/pkgconfig
    55pkgconfig_DATA= pslib.pc
  • branches/eam_branches/ipp-20150326/psLib/etc/Makefile.am

    r10577 r38016  
    11BUILT_SOURCES = pslib.config
    22EXTRA_DIST = pslib.config.template
     3
     4bin_SCRIPTS = pslib-setsvnversion.pl
    35
    46# this is done instead of using autoconf to delay the expansion of datadir
  • branches/eam_branches/ipp-20150326/psLib/etc/pslib-setsvnversion.pl

    r38014 r38016  
    8787close (FILE);
    8888
     89if (! -e $ARGV[2]) {
     90    if ($VERBOSE) {
     91        print "prior $ARGV[2] not found, replacing with $output\n";
     92    }
     93    rename $output, $ARGV[2];
     94    exit 0;
     95}
     96
    8997$difflines = `diff $ARGV[2] $output`;
    9098if ($difflines eq "") {
    91     if ($VERBOSE) { print "no change to $ARGV[2], keeping old version\n"; }
     99    print "  setsvnversion.pl: no change to $ARGV[2], keeping old version\n";
    92100} else {
    93101    if ($VERBOSE) {
  • branches/eam_branches/ipp-20150326/psLib/src/sys/Makefile.am

    r23807 r38016  
    33noinst_LTLIBRARIES = libpslibsys.la
    44
    5 if HAVE_SVNVERSION
    6 PSLIB_VERSION=`$(SVNVERSION) ../..`
    7 else
    8 PSLIB_VERSION="UNKNOWN"
    9 endif
    10 
    11 if HAVE_SVN
    12 PSLIB_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 PSLIB_SOURCE=`$(SVN) info | $(SED) -n -e 's/Repository UUID: // p'`
    14 else
    15 PSLIB_BRANCH="UNKNOWN"
    16 PSLIB_SOURCE="UNKNOWN"
    17 endif
    18 
    195# Force recompilation of psConfigure.c, since it gets the version information
    206psConfigure.c: psVersionDefinitions.h
    217psVersionDefinitions.h: psVersionDefinitions.h.in FORCE
    22         -$(RM) psVersionDefinitions.h
    23         $(SED) -e "s|@PSLIB_VERSION@|\"$(PSLIB_VERSION)\"|" -e "s|@PSLIB_BRANCH@|\"$(PSLIB_BRANCH)\"|" -e "s|@PSLIB_SOURCE@|\"$(PSLIB_SOURCE)\"|" psVersionDefinitions.h.in > psVersionDefinitions.h
     8        ../../etc/pslib-setsvnversion.pl PSLIB psVersionDefinitions.h.in psVersionDefinitions.h
    249FORCE: ;
    2510
Note: See TracChangeset for help on using the changeset viewer.