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
8a255f7b
Commit
8a255f7b
authored
Jul 31, 2013
by
Matthias Braun
Browse files
ensure automatically generated files have a newline at the end
parent
6cba2237
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/gen_ir.py
View file @
8a255f7b
...
...
@@ -287,7 +287,10 @@ def main(argv):
env
.
globals
[
'warning'
]
=
"/* Warning: automatically generated file */"
template
=
env
.
get_template
(
templatefile
)
sys
.
stdout
.
write
(
template
.
render
().
encode
(
"utf-8"
))
result
=
template
.
render
().
encode
(
"utf-8"
)
if
result
[
-
1
]
!=
"
\n
"
:
result
+=
"
\n
"
sys
.
stdout
.
write
(
result
)
if
__name__
==
"__main__"
:
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