From cf4f65399f138d8b57b87d3a4ded4ff7424f5b7c Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Mon, 1 Oct 2018 18:06:35 -0700 Subject: SConstruct; fix creating revision.h with Python 3 polystr() to the rescue. --- SConstruct | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1