Update svn_revision for git

This commit is contained in:
Doug McLain 2013-03-18 17:10:18 -04:00
parent 5caa8719cd
commit 329b5fe1c2
1 changed files with 2 additions and 5 deletions

View File

@ -267,14 +267,11 @@ def i18n (buildenv, sources, installenv):
def fetch_svn_revision (path):
cmd = "LANG= "
cmd += "svn info "
cmd += path
cmd += " 2>/dev/null | awk '/^Revision:/ { print $2}'"
cmd = "LANG= git describe --tags HEAD"
return commands.getoutput (cmd)
def create_stored_revision (target = None, source = None, env = None):
if os.path.exists('.svn'):
if os.path.exists('.git'):
rev = fetch_svn_revision ('.');
try:
text = "#include <ardour/svn_revision.h>\n"