mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
print the git version on build
This commit is contained in:
parent
b1f88c57d5
commit
d957bf7a28
1 changed files with 2 additions and 2 deletions
4
wscript
4
wscript
|
|
@ -83,7 +83,7 @@ def create_stored_revision():
|
||||||
rev = ""
|
rev = ""
|
||||||
if os.path.exists('.git'):
|
if os.path.exists('.git'):
|
||||||
rev = fetch_git_revision();
|
rev = fetch_git_revision();
|
||||||
print("Revision: %s", rev)
|
print("ardour.git version: " + rev + "\n")
|
||||||
elif os.path.exists('libs/ardour/svn_revision.cc'):
|
elif os.path.exists('libs/ardour/svn_revision.cc'):
|
||||||
print("Using packaged svn revision")
|
print("Using packaged svn revision")
|
||||||
return
|
return
|
||||||
|
|
@ -94,7 +94,7 @@ def create_stored_revision():
|
||||||
try:
|
try:
|
||||||
text = '#include "ardour/svn_revision.h"\n'
|
text = '#include "ardour/svn_revision.h"\n'
|
||||||
text += 'namespace ARDOUR { const char* svn_revision = \"%s\"; }\n' % rev
|
text += 'namespace ARDOUR { const char* svn_revision = \"%s\"; }\n' % rev
|
||||||
print('Writing svn revision info to libs/ardour/svn_revision.cc using ' + rev)
|
print('Writing revision info to libs/ardour/svn_revision.cc using ' + rev)
|
||||||
o = open('libs/ardour/svn_revision.cc', 'w')
|
o = open('libs/ardour/svn_revision.cc', 'w')
|
||||||
o.write(text)
|
o.write(text)
|
||||||
o.close()
|
o.close()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue