Browse Source

Allow override of svn revision by using file

to make possible exported source trees to report svn revision too


git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2678 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.90
nedko 17 years ago
parent
commit
3df0c2bc46
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      wscript

+ 5
- 0
wscript View File

@@ -33,6 +33,11 @@ def display_feature(msg, build):
display_msg(msg, "no", 'YELLOW')

def fetch_svn_revision(path):
svn_revision_file = "svnrev"
if os.access(svn_revision_file, os.R_OK):
f = open(svn_revision_file, 'r')
return f.read()
cmd = "LANG= "
cmd += "svnversion "
cmd += path


Loading…
Cancel
Save