mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-08 23:13:38 +08:00
[bugfix] add utf8 support for pod2html and pod2markdown
This commit is contained in:
@@ -646,7 +646,7 @@ install_html_docs:
|
|||||||
@\
|
@\
|
||||||
OUTSUFFIX='.$(HTMLSUFFIX)'; \
|
OUTSUFFIX='.$(HTMLSUFFIX)'; \
|
||||||
OUTTOP="$(DESTDIR)$(HTMLDIR)"; \
|
OUTTOP="$(DESTDIR)$(HTMLDIR)"; \
|
||||||
GENERATE="pod2html --podroot=$(SRCDIR)/doc --htmldir=.. \
|
GENERATE="pod2html --utf8 --podroot=$(SRCDIR)/doc --htmldir=.. \
|
||||||
--podpath=apps:crypto:ssl --title=\$$Name \
|
--podpath=apps:crypto:ssl --title=\$$Name \
|
||||||
| perl -pe 's|href=\"http://man.he.net/man|href=\"../man|g; s|href=\"(.*/man.*)(?<!\.html)\">|href=\"\$$1.html\">|g;'"; \
|
| perl -pe 's|href=\"http://man.he.net/man|href=\"../man|g; s|href=\"(.*/man.*)(?<!\.html)\">|href=\"\$$1.html\">|g;'"; \
|
||||||
$(PROCESS_PODS)
|
$(PROCESS_PODS)
|
||||||
|
|||||||
@@ -3,5 +3,5 @@
|
|||||||
for file in $`ls *.pod`
|
for file in $`ls *.pod`
|
||||||
do
|
do
|
||||||
mdfile=`basename -s .pod $file`.md
|
mdfile=`basename -s .pod $file`.md
|
||||||
pod2markdown $file $mdfile
|
pod2markdown --utf8 $file $mdfile
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ foreach my $subdir (keys %{$options{subdir}}) {
|
|||||||
my $suffix = { man => ".$podinfo{section}",
|
my $suffix = { man => ".$podinfo{section}",
|
||||||
html => ".html" } -> {$options{type}};
|
html => ".html" } -> {$options{type}};
|
||||||
my $generate = { man => "pod2man --utf8 --name=$name --section=$podinfo{section} --center=OpenSSL --release=$config{version} \"$podpath\"",
|
my $generate = { man => "pod2man --utf8 --name=$name --section=$podinfo{section} --center=OpenSSL --release=$config{version} \"$podpath\"",
|
||||||
html => "pod2html \"--podroot=$options{sourcedir}\" --htmldir=$updir --podpath=apps:crypto:ssl \"--infile=$podpath\" \"--title=$podname\""
|
html => "pod2html --utf8 \"--podroot=$options{sourcedir}\" --htmldir=$updir --podpath=apps:crypto:ssl \"--infile=$podpath\" \"--title=$podname\""
|
||||||
} -> {$options{type}};
|
} -> {$options{type}};
|
||||||
my $output_dir = catdir($options{destdir}, "man$podinfo{section}");
|
my $output_dir = catdir($options{destdir}, "man$podinfo{section}");
|
||||||
my $output_file = $podname . $suffix;
|
my $output_file = $podname . $suffix;
|
||||||
|
|||||||
Reference in New Issue
Block a user