IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21498


Ignore:
Timestamp:
Feb 15, 2009, 5:45:22 PM (17 years ago)
Author:
welling
Message:

Another attempt at a sensible way to infer the proper CVS default tag.

Location:
branches/ipp-magic-v0/psconfig
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/ipp-magic-v0/psconfig/psbuild

    r21497 r21498  
    11#!/usr/bin/env perl
    22
    3 # Get the CVS tag
     3$tagsets = "tagsets";
     4if (!-d $tagsets || !-r $tagsets || !-x $tagsets) { die "missing the directory of distribution tables: $tagsets\n"; }
     5
     6# Get the default CVS tag
    47$cvsNameString= '$Name: not supported by cvs2svn $';
    5 if ( $cvsNameString =~ /\$Name: not supported by cvs2svn $/ ) {
     8if ( $cvsNameString =~ /\$[N]ame: (.+) $/ ) {
    69    $cvsTag = $1;
    710}
    8 else { die "ERROR: cannot parse CVS tag string\n"; }
    9 
    10 $tagsets = "tagsets";
    11 if (!-d $tagsets || !-r $tagsets || !-x $tagsets) { die "missing the directory of distribution tables: $tagsets\n"; }
     11else {
     12    @list = <$tagsets/*.dist>;
     13
     14    if ( $list[-1] =~ /$tagsets\/(.+)\.dist/ ) {
     15        $cvsTag = $1;
     16    }
     17    else { die "ERROR: unable to determine version tag\n"; }
     18}
    1219
    1320$version = "";
  • branches/ipp-magic-v0/psconfig/pschecklibs

    r21497 r21498  
    11#!/usr/bin/env perl
    22
    3 # Get the CVS tag
     3$tagsets = "tagsets";
     4$needdev = 0;
     5
     6# Get the default CVS tag
    47$cvsNameString= '$Name: not supported by cvs2svn $';
    5 if ( $cvsNameString =~ /\$Name: not supported by cvs2svn $/ ) {
     8if ( $cvsNameString =~ /\$[N]ame: (.+) $/ ) {
    69    $cvsTag = $1;
    710}
    8 else { die "ERROR: cannot parse CVS tag string\n"; }
    9 # Strip off release version number if present
    10 if ( $cvsTag =~ /^(.+)\-\d*$/ ) {
    11     $cvsTag = $1;
    12 }
    13 
    14 $tagsets = "tagsets";
    15 $needdev = 0;
     11else {
     12    @list = <$tagsets/*.libs>;
     13
     14    if ( $list[-1] =~ /$tagsets\/(.+)\.libs/ ) {
     15        $cvsTag = $1;
     16    }
     17    else { die "ERROR: unable to determine version tag\n"; }
     18}
    1619
    1720# default system library locations
  • branches/ipp-magic-v0/psconfig/pscheckperl

    r21497 r21498  
    11#!/usr/bin/env perl
    22
    3 # Get the CVS tag
     3$tagsets = "tagsets";
     4
     5# Get the default CVS tag
    46$cvsNameString= '$Name: not supported by cvs2svn $';
    5 if ( $cvsNameString =~ /\$Name: not supported by cvs2svn $/ ) {
     7if ( $cvsNameString =~ /\$[N]ame: (.+) $/ ) {
    68    $cvsTag = $1;
    79}
    8 else { die "ERROR: cannot parse CVS tag string\n"; }
    9 # Strip off release version number if present
    10 if ( $cvsTag =~ /^(.+)\-\d*$/ ) {
    11     $cvsTag = $1;
     10else {
     11    @list = <$tagsets/*.perl>;
     12
     13    if ( $list[-1] =~ /$tagsets\/(.+)\.perl/ ) {
     14        $cvsTag = $1;
     15    }
     16    else { die "ERROR: unable to determine version tag\n"; }
    1217}
    13 
    14 $tagsets = "tagsets";
    1518
    1619$version = "";
Note: See TracChangeset for help on using the changeset viewer.