summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'BuildTools/SCons/Version.py')
m---------BuildTools0
-rw-r--r--BuildTools/SCons/Version.py15
2 files changed, 0 insertions, 15 deletions
diff --git a/BuildTools b/BuildTools
new file mode 160000
+Subproject b6864b9b41e259534e2889693422f5a3f36f2b4
diff --git a/BuildTools/SCons/Version.py b/BuildTools/SCons/Version.py
deleted file mode 100644
index 02edcc9..0000000
--- a/BuildTools/SCons/Version.py
+++ /dev/null
@@ -1,15 +0,0 @@
-import subprocess, os, datetime
-
-def getGitBuildVersion() :
- p = subprocess.Popen("git rev-parse HEAD", shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=(os.name != "nt"))
- gitVersion = p.stdout.read().rstrip()[0:7]
- p.stdin.close()
- return gitVersion if p.wait() == 0 else None
-
-def getBuildVersion(version = None) :
- if version :
- return version
- gitVersion = getGitBuildVersion()
- if gitVersion :
- return gitVersion
- return datetime.date.today().strftime("%Y%m%d")