fix up svn_revision.h problem so that we can build from a tarball 2.6
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 23 Oct 2008 19:33:15 +0000 (19:33 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 23 Oct 2008 19:33:15 +0000 (19:33 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4004 d708f5d6-7413-0410-9779-e7cbd77b26cf

SConstruct

index 6e8b16e41e9237b9c8ffbbedea56bb62a0d53094..6bfcbaa46f62d1fccbda8536513ceb6e5bf35e54 100644 (file)
@@ -274,9 +274,9 @@ def create_stored_revision (target = None, source = None, env = None):
             print "Could not open libs/ardour/svn_revision.cc for writing\n"
             sys.exit (-1)
     else:
-        print "You cannot use \"scons revision\" on without using a checked out"
-        print "copy of the Ardour source code repository"
-        sys.exit (-1)
+        if not os.path.exists('libs/ardour/ardour/svn_revision.h'):    
+            print "This release of ardour is missing libs/ardour/ardour/svn_revision.h. Blame the packager."
+            sys.exit (-1)
 
 #
 # A generic builder for version.cc files
@@ -1339,7 +1339,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',