summaryrefslogtreecommitdiff
path: root/etc/scons/developer_versions.vars
blob: 3e34bccbc936be7f318d90bfd24566b87b382371 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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()