Skip to content

Commit

Permalink
wscript shouldn't fail if 'git describe' doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jun 21, 2010
1 parent cb79614 commit 545e10f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wscript
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 545e10f

Please sign in to comment.