]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/generate-filesystem-list.py
hexdecoct: make unbase64mem and unhexmem always use SIZE_MAX
[thirdparty/systemd.git] / src / basic / generate-filesystem-list.py
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