Changeset 13332
- Timestamp:
- 2006-11-24T14:16:19+13:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/LOMPlug.pm
r13324 r13332 587 587 } 588 588 589 # if we pass an absolute path as -P arg to wget, then it stuffs up the 589 # on linux, if we pass an absolute path as -P arg to wget, then it 590 # stuffs up the 590 591 # URL rewriting in the file. Need a relative path or none, so now 591 592 # we change working directory first. 593 my $changed_dir = 0; 592 594 my $current_dir = cwd(); 593 chdir "$output_dir"; 594 my $wget_cmd = "wget -nv --timestamping -k -p \"$doc_url\""; 595 my $wget_cmd = ""; 596 if ($ENV{'GSDLOS'} ne "windows") { 597 $changed_dir = 1; 598 599 chdir "$output_dir"; 600 $wget_cmd = "wget -nv --timestamping -k -p \"$doc_url\""; 601 } else { 602 $wget_cmd = "wget -nv -P$output_dir --timestamping -k -p \"$doc_url\""; 603 } 595 604 #my $wget_cmd = "wget -nv -P$output_dir --timestamping -k -p \"$doc_url\""; 596 605 ### my $full_dir_url = &File::Basename::dirname($full_file_url); … … 602 611 603 612 $status = system($wget_cmd); 604 chdir $current_dir; 605 613 if ($changed_dir) { 614 chdir $current_dir; 615 } 606 616 if ($status==0) { 607 617 $self->{'lom_srcdoc'} = $full_file_url;
Note:
See TracChangeset
for help on using the changeset viewer.