diff options
author | Gary E. Miller <gem@rellim.com> | 2018-10-01 18:06:35 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-10-01 18:06:35 -0700 |
commit | cf4f65399f138d8b57b87d3a4ded4ff7424f5b7c (patch) | |
tree | 01fba43bf23cf56b6784f2c90515cc90735dd79c /SConstruct | |
parent | b5de89b6a14fa50710e39e10e48a7a633cf43fe3 (diff) | |
download | gpsd-cf4f65399f138d8b57b87d3a4ded4ff7424f5b7c.tar.gz |
SConstruct; fix creating revision.h with Python 3
polystr() to the rescue.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1566,7 +1566,9 @@ if 'dev' in gpsd_version: rev = gpsd_version # Paranoia else: rev = gpsd_version -revision = '#define REVISION "%s"\n' % (rev.strip(),) +revision = '''/* Automatically generated file, do not edit */ +#define REVISION "%s" +''' % (polystr(rev.strip()),) env.Textfile(target="revision.h", source=[revision]) # leapseconds.cache is a local cache for information on leapseconds issued |