Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
11976727
Commit
11976727
authored
Nov 24, 2011
by
Matthias Braun
Browse files
output documentation to file on request
parent
e9412b5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/gen_docu.py
View file @
11976727
...
...
@@ -127,8 +127,14 @@ def prepare_nodes():
return
real_nodes
def
main
(
argv
):
output
=
sys
.
stdout
if
len
(
argv
)
>
1
:
output
=
open
(
argv
[
1
],
"w"
)
real_nodes
=
prepare_nodes
()
time
=
datetime
.
now
().
replace
(
microsecond
=
0
).
isoformat
(
' '
)
sys
.
stdout
.
write
(
docu_template
.
render
(
nodes
=
real_nodes
,
time
=
time
))
output
.
write
(
docu_template
.
render
(
nodes
=
real_nodes
,
time
=
time
))
if
output
!=
sys
.
stdout
:
output
.
close
()
main
(
sys
.
argv
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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