IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

Improved way of picking out a default tag for selection of appropriate
tagset.

File:
1 edited

Legend:

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

    r17490 r21497  
    11#!/usr/bin/env perl
     2
     3# Get the CVS tag
     4$cvsNameString= '$Name: not supported by cvs2svn $';
     5if ( $cvsNameString =~ /\$Name: not supported by cvs2svn $/ ) {
     6    $cvsTag = $1;
     7}
     8else { die "ERROR: cannot parse CVS tag string\n"; }
     9# Strip off release version number if present
     10if ( $cvsTag =~ /^(.+)\-\d*$/ ) {
     11    $cvsTag = $1;
     12}
    213
    314$tagsets = "tagsets";
     
    3243
    3344if ( @ARGV == 0) {
    34     @list = <$tagsets/*.perl>;
    35     $file = $list[-1];
     45    $defaultversion=$cvsTag;
     46    $file="$tagsets/$defaultversion.perl";
    3647} else {
    3748    $file = "$tagsets/$ARGV[0].perl";
Note: See TracChangeset for help on using the changeset viewer.