diff options
author | Julien de Kozak <jdekozak@hotmail.com> | 2013-03-17 14:53:30 +0100 |
---|---|---|
committer | Julien de Kozak <jdekozak@hotmail.com> | 2013-03-18 20:13:05 +0100 |
commit | eb7a85b8f992d0e2783c40c4809d81b17e80436c (patch) | |
tree | a461828941636a1e7e09202ab1a40065ca6f93c8 /wscript | |
parent | 62f1ed054b655bb45b82afa2ea6a7787a988b4f9 (diff) |
Set the revision mechanism independent from the VCS name
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -84,22 +84,22 @@ def create_stored_revision(): if os.path.exists('.git'): rev = fetch_git_revision(); print("ardour.git version: " + rev + "\n") - elif os.path.exists('libs/ardour/svn_revision.cc'): - print("Using packaged svn revision") + elif os.path.exists('libs/ardour/revision.cc'): + print("Using packaged revision") return else: - print("Missing libs/ardour/svn_revision.cc. Blame the packager.") + print("Missing libs/ardour/revision.cc. Blame the packager.") sys.exit(-1) try: - text = '#include "ardour/svn_revision.h"\n' - text += 'namespace ARDOUR { const char* svn_revision = \"%s\"; }\n' % rev - print('Writing revision info to libs/ardour/svn_revision.cc using ' + rev) - o = open('libs/ardour/svn_revision.cc', 'w') + text = '#include "ardour/revision.h"\n' + text += 'namespace ARDOUR { const char* revision = \"%s\"; }\n' % rev + print('Writing revision info to libs/ardour/revision.cc using ' + rev) + o = open('libs/ardour/revision.cc', 'w') o.write(text) o.close() except IOError: - print('Could not open libs/ardour/svn_revision.cc for writing\n') + print('Could not open libs/ardour/revision.cc for writing\n') sys.exit(-1) def set_compiler_flags (conf,opt): |