Changeset 5137
- Timestamp:
- 12/14/07 16:14:38 (7 months ago)
- Files:
-
- build/trunk/scripts/build.pl (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
build/trunk/scripts/build.pl
r4566 r5137 44 44 45 45 sub main { 46 my($style, $project ) = @_;46 my($style, $project, $version) = @_; 47 47 48 48 my $c = Config::INI::Simple->new(); … … 50 50 my $config = $c->{"default"}; 51 51 52 $version ||= "trunk"; 53 52 54 foreach (keys %{$c->{$style}}) { 53 55 $config->{$_} = $c->{$style}->{$_}; … … 55 57 56 58 if($project) { 57 build($style, $project, $config );59 build($style, $project, $config, $version); 58 60 } 59 61 elsif($config->{"projects"}) { … … 69 71 70 72 sub build { 71 my($style, $project, $config ) = @_;73 my($style, $project, $config, $version) = @_; 72 74 73 75 my($host, $os, $arch) = hostinfo(); … … 82 84 83 85 mkdir($work_path); 86 87 if($version ne "trunk") { 88 $config->{"svn_branch"} = "tags/$project-$version"; 89 } 84 90 85 91 my $variables; … … 137 143 138 144 print REPORT "Project: $project\n"; 145 print REPORT "Version: $version\n"; 139 146 print REPORT "Build Time: " . interval($time) . "\n\n"; 140 147 … … 185 192 } 186 193 187 $subject .= " of $project" . ($success ? "succeeded" : "failed") . " on $host/$os/$arch";194 $subject .= " of $project " . ($version ne "trunk" ? $version : "") . " " . ($success ? "succeeded" : "failed") . " on $host/$os/$arch"; 188 195 189 196 if($warnings > 0 || $errors > 0 || $failedtests > 0) { … … 275 282 276 283 277 main($ARGV[0], $ARGV[1] );284 main($ARGV[0], $ARGV[1], $ARGV[2]);
