Changeset 17253


Ignore:
Timestamp:
2008-09-11T15:30:18+12:00 (16 years ago)
Author:
kjdon
Message:

added use strict; check whether site is non-empty not just defined to test for gs3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/bin/script/build

    r14925 r17253  
    3535package build;
    3636
     37use strict;
     38no strict 'refs';
     39
    3740use FileHandle;
    3841use File::Copy;
     
    6568    $path_separator . $ENV{'PATH'};
    6669
     70# all the input option variables
     71my ($optionfile, $indextype, $append, $manifest, $remove_archives, $remove_import, $buildtype, $maxdocs, @download, $collectdir, $site, $dontinstall, $save_archives, $out, $make_writable, $log_events, $event_log_file, $email_events, $mail_server, $statsfile, $event_header);
     72
    6773&parse_args (\@ARGV);
    6874
     
    9399
    94100my $cdir = $collectdir;
    95 if (defined $site)
     101if (defined $site && $site =~ /\w/)
    96102{
    97103    die "GSDL3HOME not set." unless $ENV{'GSDL3HOME'};
     
    235241    }
    236242   
    237     foreach $download_dir (@download) {
     243    foreach my $download_dir (@download) {
    238244
    239245        # remove any leading or trailing whitespace from filenames (just in case)
Note: See TracChangeset for help on using the changeset viewer.