diff options
-rw-r--r-- | etc/scons/developer_versions.vars | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/etc/scons/developer_versions.vars b/etc/scons/developer_versions.vars new file mode 100644 index 00000000000..3e34bccbc93 --- /dev/null +++ b/etc/scons/developer_versions.vars @@ -0,0 +1,13 @@ +def short_describe(): + import os + import subprocess + with open(os.devnull, "r+") as devnull: + proc = subprocess.Popen("git describe --abbrev=0", + stdout=subprocess.PIPE, + stderr=devnull, + stdin=devnull, + shell=True) + return proc.communicate()[0].decode('utf-8').strip()[1:] + +MONGO_GIT_HASH="unknown" +MONGO_VERSION=short_describe() |