Ignore:
Timestamp:
2000-09-06T14:14:46+12:00 (24 years ago)
Author:
sjboddie
Message:

More minor changes to the collector

File:
1 edited

Legend:

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

    r1485 r1507  
    130130   
    131131    foreach $download_dir (@download) {
     132
     133        # remove any leading or trailing whitespace from filenames (just in case)
     134        $download_dir =~ s/^\s+//;
     135        $download_dir =~ s/\s+$//;
    132136       
    133137        if ($download_dir =~ /^http:\/\//) {
     
    141145        # is a file or directory on the local file system.
    142146        $download_dir =~ s/^file:(\/\/)?//;
     147        $download_dir =~ s/^\s+//; # may be whitespace between "file://" and the rest
    143148       
    144149        if (-e $download_dir) {
     
    152157            &append_file ($out, "$outfile.download");
    153158        } else {
    154             print $out "WARNING: $download_dir does not exist\n";
     159            print $out "WARNING: '$download_dir' does not exist\n";
    155160        }
    156161        }
     
    184189    } else {
    185190        # no import or archives
    186         print $out "build: ERROR: The $collection collection has no import\n";
    187         print $out "       or archives data. Try downloading an unbuilt version\n";
    188         print $out "       of the collection from www.nzdl.org\n";
     191        print $out "build: ERROR: The $collection collection has no import or archives data.\n";
    189192        &final_out (1) if $use_out;
    190193        die "\n";
Note: See TracChangeset for help on using the changeset viewer.