Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
best-practical
rt
Commits
6da01d4d
Commit
6da01d4d
authored
Jun 12, 2014
by
Jim Brandt
Browse files
Merge branch '4.2/link-docs-from-readme' into 4.2-trunk
parents
e6113406
f26bbcd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
devel/tools/rt-static-docs
View file @
6da01d4d
...
...
@@ -148,14 +148,17 @@ for my $file (<README* UPGRADING*>) {
open
my
$source
,
"
<
",
$file
or
warn
"
Can't open
$file
: $!
",
next
;
open
my
$html
,
"
>
",
$dest
or
warn
"
Can't open
$dest
: $!
",
next
;
my
$str
=
"";
$str
.=
encode_entities
(
$_
)
while
<
$source
>
;
close
$source
;
print
$html
"
<pre>
";
print
$html
encode_entities
(
$_
)
while
<
$source
>
;
print
$html
"
</pre>
";
$str
=
"
<pre>
$str
</pre>
";
$str
=~
s{\bdocs/([a-z_-]+)\.pod\b}{<a href="$1.html">docs/$1.pod</a>}g
;
close
$source
;
close
$html
;
open
my
$html
,
"
>
",
$dest
or
warn
"
Can't open
$dest
: $!
",
next
;
print
$html
$str
;
close
$html
;
$converter
->
note_for_contents_file
([
$name
],
$file
,
$dest
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment