summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorJulien de Kozak <jdekozak@hotmail.com>2013-03-17 14:53:30 +0100
committerJulien de Kozak <jdekozak@hotmail.com>2013-03-18 20:13:05 +0100
commiteb7a85b8f992d0e2783c40c4809d81b17e80436c (patch)
treea461828941636a1e7e09202ab1a40065ca6f93c8 /wscript
parent62f1ed054b655bb45b82afa2ea6a7787a988b4f9 (diff)
Set the revision mechanism independent from the VCS name
Diffstat (limited to 'wscript')
-rw-r--r--wscript16
1 files changed, 8 insertions, 8 deletions
diff --git a/wscript b/wscript
index 794c2f1124..547ac3d06d 100644
--- a/wscript
+++ b/wscript
@@ -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):