patch from Joe Button to cache VST personal use question/answer

git-svn-id: svn://localhost/ardour2/trunk@1748 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2007-04-26 01:05:30 +00:00
parent 98a3014966
commit b74fb99332

View file

@ -382,14 +382,22 @@ env.Append (BUILDERS = {'Tarball' : tarball_bld})
# #
if env['VST']: if env['VST']:
sys.stdout.write ("Are you building Ardour for personal use (rather than distribution to others)? [no]: ") if os.path.isfile('.personal_use_only'):
answer = sys.stdin.readline () 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."
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);
else: 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')
####################### #######################