Changeset 709

Show
Ignore:
Timestamp:
10/28/06 20:00:48 (2 years ago)
Author:
gboggs
Message:

exportmt.pl - Reworded a couple in-line comments.
Build.pm - Moved the setting of the environment language to the beginning of the setup! Whoops :)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/build/Build.pm

    r708 r709  
    6868      'deploy-uri=s'    => 'https://intranet.sixapart.com/mt-interest', 
    6969      '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. 
    7676      'export!'         => 1,  # To export or not to export. That is the question. 
    7777      'export-dir=s'    => '',  # Constructed at run-time. 
     
    140140    warn( "WARNING: $ssl not found. Can't use SSL.\n" ) if $@; 
    141141 
     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 
    142147    $self->{'pack=s'} ||= -e 'build/mt-dists/MTE.mk' ? 'MTE' : 'MT'; 
    143148    $ENV{BUILD_PACKAGE}  = $self->{'pack=s'}; 
     
    163168    # Figure out what repository to use. 
    164169    $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; 
    170170 
    171171    # Create the build-stamp if one is not already defined. 
  • branches/wheeljack/build/exportmt.pl

    r708 r709  
    1919 
    2020for( $build->languages() ) { 
    21     # Perform the preliminary contextual set-up. 
    2221    $build->setup( language => $_ ); 
    2322 
     
    5150    $build->cleanup(); 
    5251 
    53     # TODO Refactor the (rarely used) email notification. 
     52    # TODO Factor out the (rarely used) email notification. 
    5453    $build->notify( $distros ); 
    5554}