};
if ($@) {
print STDERR "$@\n" if $DEBUG;
- ## system('links',
- ## exists $options{http_proxy}?('-http-proxy',$options{http_proxy}):(),
- ## $url
- ## ) == 0 or next;
- ## rename('temp.pdf',"${pmid}.pdf") if -e 'temp.pdf';
+ system('links',
+ exists $options{http_proxy}?('-http-proxy',$options{http_proxy}):(),
+ $url
+ ) == 0 or next;
+ rename('temp.pdf',"${pmid}.pdf") if -e 'temp.pdf';
}
}
}
return $pdf_m;
}
}
- if ($guess and defined $best_guess) {
- $m->get($best_guess->url_abs());
- return $m;
- }
+# if ($guess and defined $best_guess) {
+# $m->get($best_guess->url_abs());
+# return $m;
+# }
return undef;
}
($config->{program_name}) = $0 =~/([^\/]+)\s*$/;
-GetOptions($config,'counter_start|c=i','renumber_only|r!');
+GetOptions($config,'counter_start|c=i','renumber_only|renumber-only|r!');
if ($#ARGV < 0) {
print STDERR "No Directory Specified\nUsage: $config->{program_name} <directory>\n";