udev: String substitutions can be done in ENV, too
[systemd_ALT.git] / src / basic / generate-filesystem-list.py
blob52b74f176300fa67363d401d69cb18faddbf5673
1 #!/usr/bin/env python3
2 # SPDX-License-Identifier: LGPL-2.1-or-later
4 import sys
6 keywords_section = False
8 for line in open(sys.argv[1]):
9 if line[0] == '#':
10 continue
12 if keywords_section:
13 print('"{}\\0"'.format(line.split(',')[0].strip()))
14 elif line.startswith('%%'):
15 keywords_section = True