1#!/usr/bin/env python3
2# SPDX-License-Identifier: LGPL-2.1-or-later
3
4import sys
5import os
6
7s390 = 's390' in os.uname().machine
8arm = 'arm' in os.uname().machine
9
10for line in open(sys.argv[1]):
11    if line.startswith('s390_') and not s390:
12        continue
13    if line.startswith('arm_') and not arm:
14        continue
15
16    print('"{}\\0"'.format(line.strip()))
17