mirror of
https://github.com/curl/curl.git
synced 2026-08-25 17:33:32 +03:00
perl: open... || -> open... or (cont.)
Also: unfold a few lines, fix a space, add a missing parentheses.
Follow-up to 678e63934c #22036
Closes #22047
This commit is contained in:
parent
1bb75af8e9
commit
be8f24323e
18 changed files with 44 additions and 58 deletions
|
|
@ -562,7 +562,7 @@ sub maybespace {
|
|||
sub single {
|
||||
my ($dir, $manpage, $f, $standalone) = @_;
|
||||
my $fh;
|
||||
open($fh, "<:crlf", "$dir/$f") ||
|
||||
open($fh, "<:crlf", "$dir/$f") or
|
||||
die "could not find $dir/$f";
|
||||
my $short;
|
||||
my $long;
|
||||
|
|
@ -969,7 +969,7 @@ sub single {
|
|||
sub getshortlong {
|
||||
my ($dir, $f) = @_;
|
||||
$f =~ s/^.*\///;
|
||||
open(F, "<:crlf", "$dir/$f") ||
|
||||
open(F, "<:crlf", "$dir/$f") or
|
||||
die "could not find $dir/$f";
|
||||
my $short;
|
||||
my $long;
|
||||
|
|
@ -1037,7 +1037,7 @@ sub indexoptions {
|
|||
sub header {
|
||||
my ($dir, $manpage, $f) = @_;
|
||||
my $fh;
|
||||
open($fh, "<:crlf", "$dir/$f") ||
|
||||
open($fh, "<:crlf", "$dir/$f") or
|
||||
die "could not find $dir/$f";
|
||||
my @d = render($manpage, $fh, $f, 1);
|
||||
close($fh);
|
||||
|
|
@ -1047,7 +1047,7 @@ sub header {
|
|||
sub sourcecategories {
|
||||
my ($dir) = @_;
|
||||
my %cats;
|
||||
open(H, "<$dir/../../src/tool_help.h") ||
|
||||
open(H, "<$dir/../../src/tool_help.h") or
|
||||
die "cannot find the header file";
|
||||
while(<H>) {
|
||||
if(/^\#define CURLHELP_([A-Z0-9]*)/) {
|
||||
|
|
@ -1177,7 +1177,7 @@ sub listglobals {
|
|||
|
||||
# Find all global options and output them
|
||||
foreach my $f (sort @files) {
|
||||
open(F, "<:crlf", "$dir/$f") ||
|
||||
open(F, "<:crlf", "$dir/$f") or
|
||||
die "could not read $dir/$f";
|
||||
my $long;
|
||||
my $start = 0;
|
||||
|
|
@ -1222,7 +1222,7 @@ sub mainpage {
|
|||
# $manpage is 1 for nroff, 0 for ASCII
|
||||
my $ret;
|
||||
my $fh;
|
||||
open($fh, "<:crlf", "$dir/mainpage.idx") ||
|
||||
open($fh, "<:crlf", "$dir/mainpage.idx") or
|
||||
die "no $dir/mainpage.idx file";
|
||||
|
||||
print <<HEADER
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue