4cade/bin/builddisplaynames.py
2021-10-23 01:20:34 -04:00

14 lines
358 B
Python
Executable File

#!/usr/bin/env python3
# usage:
# builddisplaynames.py < build/GAMES.CONF > build/DISPLAY.CONF
import sys
for line in sys.stdin:
if line.startswith("["): continue
if "=" not in line:
prefix, key = line.split(",")
line = prefix + "," + key.strip() + "=" + key.replace(".", " ").title().replace(" Ii", " II")
print(line, end="")