repo.or.cz
/
systemd_ALT.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
udev: String substitutions can be done in ENV, too
[systemd_ALT.git]
/
src
/
basic
/
generate-filesystem-list.py
blob
52b74f176300fa67363d401d69cb18faddbf5673
1
#!/usr/bin/env python3
2
# SPDX-License-Identifier: LGPL-2.1-or-later
3
4
import
sys
5
6
keywords_section
=
False
7
8
for
line
in
open
(
sys
.
argv
[
1
]):
9
if
line
[
0
] ==
'#'
:
10
continue
11
12
if
keywords_section
:
13
print
(
'"{}
\\
0"'
.
format
(
line
.
split
(
','
)[
0
].
strip
()))
14
elif
line
.
startswith
(
'
%%
'
):
15
keywords_section
=
True