Permalink
Browse files

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

  • Loading branch information...
1 parent cb79614 commit 545e10f2399dd748f6261919ed3db177d02ef008 @ry ry committed Jun 21, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 wscript
View
@@ -358,6 +358,7 @@ def build_v8(bld):
bld.install_files('${PREFIX}/include/node/', 'deps/v8/include/*.h')
+
def build(bld):
## This snippet is to show full commands as WAF executes
import Build
@@ -501,7 +502,10 @@ def build(bld):
def subflags(program):
if os.path.exists(join(cwd, ".git")):
- actual_version=cmd_output("git describe").strip()
+ try:
+ actual_version=cmd_output("git describe").strip()
+ except:
+ actual_version=VERSION+'+'
else:
actual_version=VERSION

0 comments on commit 545e10f

Please sign in to comment.