diff options
author | Sakari Bergen <sakari.bergen@beatwaves.net> | 2008-12-08 09:03:36 +0000 |
---|---|---|
committer | Sakari Bergen <sakari.bergen@beatwaves.net> | 2008-12-08 09:03:36 +0000 |
commit | 6974dbdcd273368fc3b51e45807d65e7d89eebed (patch) | |
tree | 778b872d26f005809ca2382355cd788dd56ad689 /SConstruct | |
parent | 72f55cd8b69522c8e05122d5707145a5b60fa1e6 (diff) |
Improve svn revision handling and make srctar "work". (The tarball is created, but it doesn't build...)
git-svn-id: svn://localhost/ardour2/branches/3.0@4298 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct index caa88a7a9a..a56c690fde 100644 --- a/SConstruct +++ b/SConstruct @@ -281,9 +281,12 @@ def create_stored_revision (target = None, source = None, env = None): 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: @@ -1366,7 +1369,7 @@ Default (sysrcbuild) Precious (env['DISTTREE']) env.Distribute (env['DISTTREE'], - [ 'SConstruct', 'svn_revision.h', + [ 'SConstruct', 'COPYING', 'PACKAGER_README', 'README', 'ardour.rc.in', 'tools/config.guess', |