diff options
author | Robert Newson <robert.newson@cloudant.com> | 2011-10-10 17:55:50 +0100 |
---|---|---|
committer | Robert Newson <robert.newson@cloudant.com> | 2011-10-10 19:04:54 +0100 |
commit | cf630a2e87ac1b6eace26601dc5b7ffdb39273b2 (patch) | |
tree | fe5080dedf417b20112ed372d737eb8c3ca309ff /couchjs/c_src/SConscript | |
parent | 6e6523d62beff627c444aec3d658ef1a5d534ff1 (diff) | |
parent | da22c19f7a7fdfae015dfb0db93b5bd9453eae6c (diff) |
Merge remote-tracking branch 'apache/1.1.x'
Diffstat (limited to 'couchjs/c_src/SConscript')
-rw-r--r-- | couchjs/c_src/SConscript | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/couchjs/c_src/SConscript b/couchjs/c_src/SConscript index b014e2ec..a3e0cc07 100644 --- a/couchjs/c_src/SConscript +++ b/couchjs/c_src/SConscript @@ -13,6 +13,7 @@ # the License. import os import commands +import subprocess def require_lib(name): if not conf.CheckLib(name): @@ -86,6 +87,13 @@ if not env.GetOption('clean'): conf.Define(vsn) break + ## Define properties for -h / -V + + vsn = subprocess.check_output(["git","describe","--match","1.*"]) + conf.Define("PACKAGE_STRING", '"%s"' % vsn.rstrip()) + conf.Define("PACKAGE_NAME", '"Cloudant BigCouch"') + conf.Define("PACKAGE_BUGREPORT", '"https://github.com/cloudant/bigcouch/issues"') + env = conf.Finish() env.Program('couchjs', ['main.c', 'http.c', 'utf8.c', 'util.c']) |