Changeset 709
- Timestamp:
- 10/28/06 20:00:48 (2 years ago)
- Files:
-
- branches/wheeljack/build/Build.pm (modified) (3 diffs)
- branches/wheeljack/build/exportmt.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/wheeljack/build/Build.pm
r708 r709 68 68 'deploy-uri=s' => 'https://intranet.sixapart.com/mt-interest', 69 69 'build!' => 1, # Build distribution files? 70 #'email-bcc:s' => undef,71 #'email-body=s' => '', # Constructed at run-time.72 #'email-cc:s' => undef,73 #'email-from=s' => ( $ENV{USER} || $ENV{USERNAME} ) .'@sixapart.com',74 #'email-host=s' => 'mail.sixapart.com',75 #'email-subject=s' => '', # Constructed at run-time.70 'email-bcc:s' => undef, 71 'email-body=s' => '', # Constructed at run-time. 72 'email-cc:s' => undef, 73 'email-from=s' => ( $ENV{USER} || $ENV{USERNAME} ) .'@sixapart.com', 74 'email-host=s' => 'mail.sixapart.com', 75 'email-subject=s' => '', # Constructed at run-time. 76 76 'export!' => 1, # To export or not to export. That is the question. 77 77 'export-dir=s' => '', # Constructed at run-time. … … 140 140 warn( "WARNING: $ssl not found. Can't use SSL.\n" ) if $@; 141 141 142 # Replace the current language if given one as an argument. 143 $self->{'lang=s'} = $args{language} if $args{language}; 144 # Strip the dialect portion of the language code (ab_CD into ab). 145 ($self->{'short-lang=s'} = $self->{'lang=s'}) =~ s/([a-z]{2})_[A-Z]{2}$/$1/o; 146 142 147 $self->{'pack=s'} ||= -e 'build/mt-dists/MTE.mk' ? 'MTE' : 'MT'; 143 148 $ENV{BUILD_PACKAGE} = $self->{'pack=s'}; … … 163 168 # Figure out what repository to use. 164 169 $self->set_repo(); 165 166 # Replace the current language if given one as an argument.167 $self->{'lang=s'} = $args{language} if $args{language};168 # Strip the dialect portion of the language code (ab_CD into ab).169 ($self->{'short-lang=s'} = $self->{'lang=s'}) =~ s/([a-z]{2})_[A-Z]{2}$/$1/o;170 170 171 171 # Create the build-stamp if one is not already defined. branches/wheeljack/build/exportmt.pl
r708 r709 19 19 20 20 for( $build->languages() ) { 21 # Perform the preliminary contextual set-up.22 21 $build->setup( language => $_ ); 23 22 … … 51 50 $build->cleanup(); 52 51 53 # TODO Refactorthe (rarely used) email notification.52 # TODO Factor out the (rarely used) email notification. 54 53 $build->notify( $distros ); 55 54 }
