34a15d58c4
I want to make the scons files simpler, so I have decided to drop down to only one test environment. This patch disables tests/core/Sconscript, but I'll add this back in as I make other changes throughout the codebase. Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
19 lines
379 B
Python
19 lines
379 B
Python
#!/usr/bin/python
|
|
import subprocess
|
|
Import("env")
|
|
|
|
version = str(env.Version)
|
|
if env.Debug == True:
|
|
version += "-debug"
|
|
|
|
try:
|
|
devnull = open("/dev/null", "w")
|
|
diff = subprocess.check_output("git diff $(git describe --abbrev=0)",
|
|
stderr=devnull, shell=True)
|
|
if diff != "":
|
|
version += "+"
|
|
except:
|
|
pass
|
|
|
|
env.Append( CCFLAGS = [ "-DCONFIG_VERSION='\"%s\"'" % version ] )
|