mirror of
https://github.com/systemd/systemd.git
synced 2026-07-16 20:40:56 +00:00
Even though many of those scripts are very simple, it is easier to include the header than to try to say whether each of those files is trivial enough not to require one.
17 lines
360 B
Python
Executable File
17 lines
360 B
Python
Executable File
#!/usr/bin/env python3
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
import sys
|
|
import os
|
|
|
|
s390 = 's390' in os.uname().machine
|
|
arm = 'arm' in os.uname().machine
|
|
|
|
for line in open(sys.argv[1]):
|
|
if line.startswith('s390_') and not s390:
|
|
continue
|
|
if line.startswith('arm_') and not arm:
|
|
continue
|
|
|
|
print('"{}\\0"'.format(line.strip()))
|