diff options
Diffstat (limited to 'update-constants.py')
-rw-r--r-- | update-constants.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/update-constants.py b/update-constants.py new file mode 100644 index 0000000..2dcacda --- /dev/null +++ b/update-constants.py @@ -0,0 +1,9 @@ +import sys + +for file in sys.argv[1:]: + lines = iter(open(file).read().splitlines()) + for line in lines: + if line.startswith('#define SD_MESSAGE') and '_STR ' not in line: + if line.endswith('\\'): + line = line[:-1] + next(lines) + print(' '.join(line.split())) |