Changeset 5372
- Timestamp:
- 06/19/09 13:09:44 (3 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
-
release.pl (modified) (1 diff)
-
update_version_number.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/release.pl
r5370 r5372 115 115 return if $_ !~ /\.pm/; 116 116 my @data = read_file($_); 117 if (my ($line) = grep {$_ =~ /^our \$VERSION\s*=\s*'\d+\.\d\ d';/ } @data ) {117 if (my ($line) = grep {$_ =~ /^our \$VERSION\s*=\s*'\d+\.\d\.?\d';/ } @data ) { 118 118 if ($line !~ /^(our \$VERSION\s*=\s*)'$version';/ ) { 119 119 chomp $line; -
trunk/tools/update_version_number.pl
r1237 r5372 11 11 12 12 my $version = shift; 13 die "Usage: $0 VERSION\n" if not $version or $version !~ /^\d\.\d\ d$/;13 die "Usage: $0 VERSION\n" if not $version or $version !~ /^\d\.\d\.?\d$/; 14 14 print "Setting VERSION $version\n"; 15 15 … … 21 21 return if $_ !~ /\.pm/; 22 22 my @data = read_file($_); 23 if (grep {$_ =~ /^our \$VERSION\s*=\s*'\d+\.\d\ d';/ } @data ) {24 my @new = map {$_ =~ s/^(our \$VERSION\s*=\s*)'\d+\.\d\ d';/$1'$version';/; $_ } @data;23 if (grep {$_ =~ /^our \$VERSION\s*=\s*'\d+\.\d\.?\d';/ } @data ) { 24 my @new = map {$_ =~ s/^(our \$VERSION\s*=\s*)'\d+\.\d\.?\d';/$1'$version';/; $_ } @data; 25 25 write_file($_, @new); 26 26 } else {
Note: See TracChangeset
for help on using the changeset viewer.
