Changeset 1743
- Timestamp:
- 2000-12-05T15:56:25+13:00 (23 years ago)
- Location:
- trunk/gsdl/bin/script
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/build
r1709 r1743 160 160 # -o = the output file to write download status to (only used if the -out 161 161 # option was given to build) 162 162 163 my $download_cmd = "perl -S gsWget.pl -P \"$importdir\" -np -nv"; 163 $download .= " -r -N -l inf -R \"*\?*\"";164 $download_cmd .= " -r -N -l inf -R \"*\?*\""; 164 165 $download_cmd .= " -o \"$outfile.download\"" if $use_out; 165 166 $download_cmd .= " \"$download_dir\""; … … 181 182 last; 182 183 } else { 183 $file = &util: filename_cat ($importdir, $file);184 $file = &util::filename_cat ($importdir, $file); 184 185 if (-d $file) { 185 186 if (opendir (DIR, $file)) { 186 my @ 2files= readdir DIR;187 my @files2 = readdir DIR; 187 188 closedir DIR; 188 foreach my $ 2file (@2files) {189 if ($ 2file=~ /^robots.txt$/i) {190 &util::rm (&util::filename_cat ($file, $ 2file));189 foreach my $file2 (@files2) { 190 if ($file2 =~ /^robots.txt$/i) { 191 &util::rm (&util::filename_cat ($file, $file2)); 191 192 last; 192 193 } -
trunk/gsdl/bin/script/gsWget.pl
r1533 r1743 31 31 BEGIN { 32 32 die "GSDLHOME not set\n" unless defined $ENV{'GSDLHOME'}; 33 die "GSDLOS not set\n" unless defined $ENV{'GSDLOS'}; 33 34 unshift (@INC, "$ENV{'GSDLHOME'}/perllib"); 34 35 } 35 36 36 # use version of wet in packages directory if it exists 37 my $cmd = "$ENV{'GSDLHOME'}/packages/wget/bin/wget"; 37 use util; 38 39 # wget should live in the Greenstone directory structure 40 # we'll bail if we can't find it 41 my $exe = &util::get_os_exe (); 42 my $cmd = &util::filename_cat ($ENV{'GSDLHOME'}, "bin", $ENV{'GSDLOS'}, "wget"); 43 $cmd .= $exe; 38 44 if (! -e "$cmd") { 39 $cmd = "wget";45 die "gsWget.pl failed: $cmd doesn't exist\n"; 40 46 } 41 47
Note:
See TracChangeset
for help on using the changeset viewer.