diff options
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']) |