Changeset 21498 for branches/ipp-magic-v0/psconfig/pscheckperl
- Timestamp:
- Feb 15, 2009, 5:45:22 PM (17 years ago)
- File:
-
- 1 edited
-
branches/ipp-magic-v0/psconfig/pscheckperl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/ipp-magic-v0/psconfig/pscheckperl
r21497 r21498 1 1 #!/usr/bin/env perl 2 2 3 # Get the CVS tag 3 $tagsets = "tagsets"; 4 5 # Get the default CVS tag 4 6 $cvsNameString= '$Name: not supported by cvs2svn $'; 5 if ( $cvsNameString =~ /\$ Name: not supported by cvs2svn$/ ) {7 if ( $cvsNameString =~ /\$[N]ame: (.+) $/ ) { 6 8 $cvsTag = $1; 7 9 } 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; 10 else { 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"; } 12 17 } 13 14 $tagsets = "tagsets";15 18 16 19 $version = "";
Note:
See TracChangeset
for help on using the changeset viewer.
