minor cleanup

This commit is contained in:
Paul Derbyshire
2019-07-16 16:26:30 +02:00
parent d5c717c812
commit bac3f53613

View File

@@ -6,8 +6,7 @@ bag = {}
exprs = [ exprs = [
(re.compile(r'^#define APP_VERSION\s+"(\S+)"'), 'app_version'), (re.compile(r'^#define APP_VERSION\s+"(\S+)"'), 'app_version'),
(re.compile(r'^#define APP_NAME\s+"(\S+)"'), 'app_name'), (re.compile(r'^#define APP_NAME\s+"(\S+)"'), 'app_name'),
(re.compile(r'^#define APP_HOSTNAME\s+"(\S+)"'), 'app_hostname'), (re.compile(r'^#define APP_HOSTNAME\s+"(\S+)"'), 'app_hostname')
] ]
with open('./src/version.h', 'r') as f: with open('./src/version.h', 'r') as f:
for l in f.readlines(): for l in f.readlines():