rev = fetch_svn_revision ('.');
elif os.path.exists('.git'):
rev = fetch_git_revision ('.');
+ elif os.path.exists('libs/ardour/svn_revision.cc'):
+ print "Using packaged svn revision"
+ return
else:
- print "You cannot use \"scons revision\" on without using a checked out"
- print "copy of the Ardour source code repository"
+ print "Your source does not include revision information."
+ print "Please check out the code from a repository or use a properly packaged version!"
sys.exit (-1)
try:
Precious (env['DISTTREE'])
env.Distribute (env['DISTTREE'],
- [ 'SConstruct', 'svn_revision.h',
+ [ 'SConstruct',
'COPYING', 'PACKAGER_README', 'README',
'ardour.rc.in',
'tools/config.guess',
env.Alias('install', env.Install(os.path.join(install_prefix, env['LIBDIR'], 'ardour3'), libtaglib))
env.Alias('tarball', env.Distribute (env['DISTTREE'],
- [ 'NEWS', 'README', 'AUTHORS', 'ChangeLog',
+ [ 'AUTHORS',
'configure',
+ 'config.h.in',
+ 'acinclude.m4',
+ 'Makefile.am',
'SConscript',
- 'taglib.pc.in'
- 'config.sub',
- 'config.guess',
- 'install-sh'
+ 'taglib.pc.in',
+ 'admin/config.sub',
+ 'admin/config.guess',
+ 'admin/conf.change.pl',
+ 'admin/install-sh'
] +
taglib_files +
headers
))
-