freedoom/lumps/genmidi/a2i-to-sbi
Mike Swanson 6eef9be73a use python3 only for building
Python 2 is very near end-of-life, and Python3-compatible changes to a
few scripts introduced compatibility problems with 2.7 again.  It went
unnoticed for me since my system symlinks "python" to "python3", but
it broke the build on systems where that symlink is still python2.  At
this point in time, I feel it is worth targetting modern Python and
forgetting about 2.7.
2019-09-06 14:43:50 -07:00

16 lines
329 B
Python
Executable file

#!/usr/bin/env python3
# SPDX-License-Identifier: BSD-3-Clause
import a2i_file
import sbi_file
import sys
if len(sys.argv) != 3:
print(
"Usage: %s <input filename> <output filename>" % sys.argv[0],
file=sys.stderr,
)
sys.exit(-1)
data = a2i_file.read(sys.argv[1])
sbi_file.write(sys.argv[2], data)