summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-10-01 18:06:35 -0700
committerGary E. Miller <gem@rellim.com>2018-10-01 18:06:35 -0700
commitcf4f65399f138d8b57b87d3a4ded4ff7424f5b7c (patch)
tree01fba43bf23cf56b6784f2c90515cc90735dd79c
parentb5de89b6a14fa50710e39e10e48a7a633cf43fe3 (diff)
downloadgpsd-cf4f65399f138d8b57b87d3a4ded4ff7424f5b7c.tar.gz
SConstruct; fix creating revision.h with Python 3
polystr() to the rescue.
-rw-r--r--SConstruct4
1 files changed, 3 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index ffcf5579..484858a4 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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