ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/build_utils/copyright.py
Revision: 1.1
Committed: Tue Oct 21 19:27:28 2003 UTC (20 years, 8 months ago) by schorsch
Content type: text/x-python
Branch: MAIN
Log Message:
Checking in experimental SCons build environment.

File Contents

# User Rev Content
1 schorsch 1.1
2     import sys
3     import string
4    
5     _ltext = '''
6    
7     RADIANCE LICENSE AGREEMENT
8    
9     Radiance is a registered copyright of The Regents of the University of
10     California ("The Regents"). The Regents grant to you a nonexclusive,
11     nontransferable license ("License") to use Radiance source code without
12     fee. You may not sell or distribute Radiance to others without the
13     prior express written permission of The Regents. You may compile and
14     use this software on any machines to which you have personal access,
15     and may share its use with others who have access to the same machines.
16    
17     NEITHER THE UNITED STATES NOR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY
18     OF THEIR EMPLOYEES, MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY
19     LEGAL LIABILITY OR RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR USEFULNESS
20     OF ANY INFORMATION, APPARATUS, PRODUCT, OR PROCESS DISCLOSED, OR REPRESENTS
21     THAT ITS USE WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS. By downloading, using
22     or copying this software, you agree to abide by the intellectual property laws
23     and all other applicable laws of the United States, and by the terms of this
24     License Agreement. Ownership of the software shall remain solely in The
25     Regents. The Regents shall have the right to terminate this License
26     immediately by written notice upon your breach of, or noncompliance with, any
27     of its terms. You shall be liable for any infringement or damages resulting
28     from your failure to abide by the terms of this License Agreement.
29    
30    
31    
32     '''
33    
34     def show_license():
35     sys.stderr.write(_ltext)
36     sys.stderr.write(
37     'Do you understand and accept the terms of this agreement [n]?\n\n')
38    
39     answer = ''
40     s = 'Please enter "yes" or "no", or use ^C to exit: '
41     while answer not in ['y', 'ye', 'yes', 'n', 'no']:
42     if answer: sys.stderr.write('invalid input "%s"\n' % answer)
43     answer = string.lower(raw_input(s))
44    
45     if answer[0] == 'y':
46     return
47     else:
48     sys.stderr.write('\n*** Installation cancelled ***\n')
49     sys.exit(1)
50