projects
/
pve-docs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
52cac05
)
asciidoc-pve.in: fix warning about undefined value
author
Dietmar Maurer
<dietmar@proxmox.com>
Fri, 21 Oct 2016 09:25:59 +0000
(11:25 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Fri, 21 Oct 2016 09:25:59 +0000
(11:25 +0200)
asciidoc-pve.in
patch
|
blob
|
blame
|
history
diff --git
a/asciidoc-pve.in
b/asciidoc-pve.in
index b8a9fb2e073d03198a63d0a0c6e6568f14bf6cda..92b0ca2f4192ea43a7b28c87d4c8d61916449f43 100644
(file)
--- a/
asciidoc-pve.in
+++ b/
asciidoc-pve.in
@@
-268,7
+268,7
@@
sub compile_asciidoc {
die "too many arguments...\n";
my $outfilemap = $fileinfo->{outfile}->{$env}->{$infile} ||
die "too many arguments...\n";
my $outfilemap = $fileinfo->{outfile}->{$env}->{$infile} ||
- die "no output file mapping
'$infile => $out
file' ($env)";
+ die "no output file mapping
for '$in
file' ($env)";
if ($man_target eq 'html') {
$outfilemap .= '.html';
if ($man_target eq 'html') {
$outfilemap .= '.html';
@@
-276,8
+276,12
@@
sub compile_asciidoc {
$outfilemap .= '-plain.html';
}
$outfilemap .= '-plain.html';
}
- die "wrong output file name '$outfile != $outfilemap' ($env)"
- if $outfile ne $outfilemap;
+ if (defined($outfile)) {
+ die "wrong output file name '$outfile != $outfilemap' ($env)"
+ if $outfile ne $outfilemap;
+ } else {
+ $outfile = $outfilemap;
+ }
defined($fileinfo->{titles}->{$env}) ||
die "unknown environment '$env'";
defined($fileinfo->{titles}->{$env}) ||
die "unknown environment '$env'";