diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-04-26 01:05:30 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-04-26 01:05:30 +0000 |
commit | b74fb993329de5ae039bece11d1551aec728b2d7 (patch) | |
tree | 147d12bdf420aa9c9524a6a7ae75ac4861d67ed2 /SConstruct | |
parent | 98a3014966f490ef77a8f934bfb9c2c8e3b8ef5d (diff) |
patch from Joe Button to cache VST personal use question/answer
git-svn-id: svn://localhost/ardour2/trunk@1748 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/SConstruct b/SConstruct index edbb2d9274..39b3822817 100644 --- a/SConstruct +++ b/SConstruct @@ -382,14 +382,22 @@ env.Append (BUILDERS = {'Tarball' : tarball_bld}) # if env['VST']: - sys.stdout.write ("Are you building Ardour for personal use (rather than distribution to others)? [no]: ") - answer = sys.stdin.readline () - answer = answer.rstrip().strip() - if answer != "yes" and answer != "y": - print 'You cannot build Ardour with VST support for distribution to others.\nIt is a violation of several different licenses. Build with VST=false.' - sys.exit (-1); + if os.path.isfile('.personal_use_only'): + print "Enabling VST support. Note that distributing a VST-enabled ardour\nis a violation of several different licences.\nBuild with VST=false if you intend to distribute ardour to others." else: - print "OK, VST support will be enabled" + sys.stdout.write ("Are you building Ardour for personal use (rather than distribution to others)? [no]: ") + answer = sys.stdin.readline () + answer = answer.rstrip().strip() + if answer == "yes" or answer == "y": + fh = open('.personal_use_only', 'w') + fh.close() + print "OK, VST support will be enabled" + else: + print 'You cannot build Ardour with VST support for distribution to others.\nIt is a violation of several different licenses. Build with VST=false.' + sys.exit (-1); +else: + if os.path.isfile('.personal_use_only'): + os.remove('.personal_use_only') ####################### |