summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-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