Browse Source

wscript shouldn't fail if 'git describe' doesn't work

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
545e10f239
  1. 4
      wscript

4
wscript

@ -358,6 +358,7 @@ def build_v8(bld):
bld.install_files('${PREFIX}/include/node/', 'deps/v8/include/*.h') bld.install_files('${PREFIX}/include/node/', 'deps/v8/include/*.h')
def build(bld): def build(bld):
## This snippet is to show full commands as WAF executes ## This snippet is to show full commands as WAF executes
import Build import Build
@ -501,7 +502,10 @@ def build(bld):
def subflags(program): def subflags(program):
if os.path.exists(join(cwd, ".git")): if os.path.exists(join(cwd, ".git")):
try:
actual_version=cmd_output("git describe").strip() actual_version=cmd_output("git describe").strip()
except:
actual_version=VERSION+'+'
else: else:
actual_version=VERSION actual_version=VERSION

Loading…
Cancel
Save