rev |
line source |
meillo@9
|
1 GNU GENERAL PUBLIC LICENSE
|
meillo@9
|
2 Version 2, June 1991
|
meillo@9
|
3
|
meillo@9
|
4 Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
meillo@9
|
5 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
meillo@9
|
6 Everyone is permitted to copy and distribute verbatim copies
|
meillo@9
|
7 of this license document, but changing it is not allowed.
|
meillo@9
|
8
|
meillo@9
|
9 Preamble
|
meillo@9
|
10
|
meillo@9
|
11 The licenses for most software are designed to take away your
|
meillo@9
|
12 freedom to share and change it. By contrast, the GNU General Public
|
meillo@9
|
13 License is intended to guarantee your freedom to share and change free
|
meillo@9
|
14 software--to make sure the software is free for all its users. This
|
meillo@9
|
15 General Public License applies to most of the Free Software
|
meillo@9
|
16 Foundation's software and to any other program whose authors commit to
|
meillo@9
|
17 using it. (Some other Free Software Foundation software is covered by
|
meillo@9
|
18 the GNU Lesser General Public License instead.) You can apply it to
|
meillo@9
|
19 your programs, too.
|
meillo@9
|
20
|
meillo@9
|
21 When we speak of free software, we are referring to freedom, not
|
meillo@9
|
22 price. Our General Public Licenses are designed to make sure that you
|
meillo@9
|
23 have the freedom to distribute copies of free software (and charge for
|
meillo@9
|
24 this service if you wish), that you receive source code or can get it
|
meillo@9
|
25 if you want it, that you can change the software or use pieces of it
|
meillo@9
|
26 in new free programs; and that you know you can do these things.
|
meillo@9
|
27
|
meillo@9
|
28 To protect your rights, we need to make restrictions that forbid
|
meillo@9
|
29 anyone to deny you these rights or to ask you to surrender the rights.
|
meillo@9
|
30 These restrictions translate to certain responsibilities for you if you
|
meillo@9
|
31 distribute copies of the software, or if you modify it.
|
meillo@9
|
32
|
meillo@9
|
33 For example, if you distribute copies of such a program, whether
|
meillo@9
|
34 gratis or for a fee, you must give the recipients all the rights that
|
meillo@9
|
35 you have. You must make sure that they, too, receive or can get the
|
meillo@9
|
36 source code. And you must show them these terms so they know their
|
meillo@9
|
37 rights.
|
meillo@9
|
38
|
meillo@9
|
39 We protect your rights with two steps: (1) copyright the software, and
|
meillo@9
|
40 (2) offer you this license which gives you legal permission to copy,
|
meillo@9
|
41 distribute and/or modify the software.
|
meillo@9
|
42
|
meillo@9
|
43 Also, for each author's protection and ours, we want to make certain
|
meillo@9
|
44 that everyone understands that there is no warranty for this free
|
meillo@9
|
45 software. If the software is modified by someone else and passed on, we
|
meillo@9
|
46 want its recipients to know that what they have is not the original, so
|
meillo@9
|
47 that any problems introduced by others will not reflect on the original
|
meillo@9
|
48 authors' reputations.
|
meillo@9
|
49
|
meillo@9
|
50 Finally, any free program is threatened constantly by software
|
meillo@9
|
51 patents. We wish to avoid the danger that redistributors of a free
|
meillo@9
|
52 program will individually obtain patent licenses, in effect making the
|
meillo@9
|
53 program proprietary. To prevent this, we have made it clear that any
|
meillo@9
|
54 patent must be licensed for everyone's free use or not licensed at all.
|
meillo@9
|
55
|
meillo@9
|
56 The precise terms and conditions for copying, distribution and
|
meillo@9
|
57 modification follow.
|
meillo@9
|
58
|
meillo@9
|
59 GNU GENERAL PUBLIC LICENSE
|
meillo@9
|
60 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
meillo@9
|
61
|
meillo@9
|
62 0. This License applies to any program or other work which contains
|
meillo@9
|
63 a notice placed by the copyright holder saying it may be distributed
|
meillo@9
|
64 under the terms of this General Public License. The "Program", below,
|
meillo@9
|
65 refers to any such program or work, and a "work based on the Program"
|
meillo@9
|
66 means either the Program or any derivative work under copyright law:
|
meillo@9
|
67 that is to say, a work containing the Program or a portion of it,
|
meillo@9
|
68 either verbatim or with modifications and/or translated into another
|
meillo@9
|
69 language. (Hereinafter, translation is included without limitation in
|
meillo@9
|
70 the term "modification".) Each licensee is addressed as "you".
|
meillo@9
|
71
|
meillo@9
|
72 Activities other than copying, distribution and modification are not
|
meillo@9
|
73 covered by this License; they are outside its scope. The act of
|
meillo@9
|
74 running the Program is not restricted, and the output from the Program
|
meillo@9
|
75 is covered only if its contents constitute a work based on the
|
meillo@9
|
76 Program (independent of having been made by running the Program).
|
meillo@9
|
77 Whether that is true depends on what the Program does.
|
meillo@9
|
78
|
meillo@9
|
79 1. You may copy and distribute verbatim copies of the Program's
|
meillo@9
|
80 source code as you receive it, in any medium, provided that you
|
meillo@9
|
81 conspicuously and appropriately publish on each copy an appropriate
|
meillo@9
|
82 copyright notice and disclaimer of warranty; keep intact all the
|
meillo@9
|
83 notices that refer to this License and to the absence of any warranty;
|
meillo@9
|
84 and give any other recipients of the Program a copy of this License
|
meillo@9
|
85 along with the Program.
|
meillo@9
|
86
|
meillo@9
|
87 You may charge a fee for the physical act of transferring a copy, and
|
meillo@9
|
88 you may at your option offer warranty protection in exchange for a fee.
|
meillo@9
|
89
|
meillo@9
|
90 2. You may modify your copy or copies of the Program or any portion
|
meillo@9
|
91 of it, thus forming a work based on the Program, and copy and
|
meillo@9
|
92 distribute such modifications or work under the terms of Section 1
|
meillo@9
|
93 above, provided that you also meet all of these conditions:
|
meillo@9
|
94
|
meillo@9
|
95 a) You must cause the modified files to carry prominent notices
|
meillo@9
|
96 stating that you changed the files and the date of any change.
|
meillo@9
|
97
|
meillo@9
|
98 b) You must cause any work that you distribute or publish, that in
|
meillo@9
|
99 whole or in part contains or is derived from the Program or any
|
meillo@9
|
100 part thereof, to be licensed as a whole at no charge to all third
|
meillo@9
|
101 parties under the terms of this License.
|
meillo@9
|
102
|
meillo@9
|
103 c) If the modified program normally reads commands interactively
|
meillo@9
|
104 when run, you must cause it, when started running for such
|
meillo@9
|
105 interactive use in the most ordinary way, to print or display an
|
meillo@9
|
106 announcement including an appropriate copyright notice and a
|
meillo@9
|
107 notice that there is no warranty (or else, saying that you provide
|
meillo@9
|
108 a warranty) and that users may redistribute the program under
|
meillo@9
|
109 these conditions, and telling the user how to view a copy of this
|
meillo@9
|
110 License. (Exception: if the Program itself is interactive but
|
meillo@9
|
111 does not normally print such an announcement, your work based on
|
meillo@9
|
112 the Program is not required to print an announcement.)
|
meillo@9
|
113
|
meillo@9
|
114 These requirements apply to the modified work as a whole. If
|
meillo@9
|
115 identifiable sections of that work are not derived from the Program,
|
meillo@9
|
116 and can be reasonably considered independent and separate works in
|
meillo@9
|
117 themselves, then this License, and its terms, do not apply to those
|
meillo@9
|
118 sections when you distribute them as separate works. But when you
|
meillo@9
|
119 distribute the same sections as part of a whole which is a work based
|
meillo@9
|
120 on the Program, the distribution of the whole must be on the terms of
|
meillo@9
|
121 this License, whose permissions for other licensees extend to the
|
meillo@9
|
122 entire whole, and thus to each and every part regardless of who wrote it.
|
meillo@9
|
123
|
meillo@9
|
124 Thus, it is not the intent of this section to claim rights or contest
|
meillo@9
|
125 your rights to work written entirely by you; rather, the intent is to
|
meillo@9
|
126 exercise the right to control the distribution of derivative or
|
meillo@9
|
127 collective works based on the Program.
|
meillo@9
|
128
|
meillo@9
|
129 In addition, mere aggregation of another work not based on the Program
|
meillo@9
|
130 with the Program (or with a work based on the Program) on a volume of
|
meillo@9
|
131 a storage or distribution medium does not bring the other work under
|
meillo@9
|
132 the scope of this License.
|
meillo@9
|
133
|
meillo@9
|
134 3. You may copy and distribute the Program (or a work based on it,
|
meillo@9
|
135 under Section 2) in object code or executable form under the terms of
|
meillo@9
|
136 Sections 1 and 2 above provided that you also do one of the following:
|
meillo@9
|
137
|
meillo@9
|
138 a) Accompany it with the complete corresponding machine-readable
|
meillo@9
|
139 source code, which must be distributed under the terms of Sections
|
meillo@9
|
140 1 and 2 above on a medium customarily used for software interchange; or,
|
meillo@9
|
141
|
meillo@9
|
142 b) Accompany it with a written offer, valid for at least three
|
meillo@9
|
143 years, to give any third party, for a charge no more than your
|
meillo@9
|
144 cost of physically performing source distribution, a complete
|
meillo@9
|
145 machine-readable copy of the corresponding source code, to be
|
meillo@9
|
146 distributed under the terms of Sections 1 and 2 above on a medium
|
meillo@9
|
147 customarily used for software interchange; or,
|
meillo@9
|
148
|
meillo@9
|
149 c) Accompany it with the information you received as to the offer
|
meillo@9
|
150 to distribute corresponding source code. (This alternative is
|
meillo@9
|
151 allowed only for noncommercial distribution and only if you
|
meillo@9
|
152 received the program in object code or executable form with such
|
meillo@9
|
153 an offer, in accord with Subsection b above.)
|
meillo@9
|
154
|
meillo@9
|
155 The source code for a work means the preferred form of the work for
|
meillo@9
|
156 making modifications to it. For an executable work, complete source
|
meillo@9
|
157 code means all the source code for all modules it contains, plus any
|
meillo@9
|
158 associated interface definition files, plus the scripts used to
|
meillo@9
|
159 control compilation and installation of the executable. However, as a
|
meillo@9
|
160 special exception, the source code distributed need not include
|
meillo@9
|
161 anything that is normally distributed (in either source or binary
|
meillo@9
|
162 form) with the major components (compiler, kernel, and so on) of the
|
meillo@9
|
163 operating system on which the executable runs, unless that component
|
meillo@9
|
164 itself accompanies the executable.
|
meillo@9
|
165
|
meillo@9
|
166 If distribution of executable or object code is made by offering
|
meillo@9
|
167 access to copy from a designated place, then offering equivalent
|
meillo@9
|
168 access to copy the source code from the same place counts as
|
meillo@9
|
169 distribution of the source code, even though third parties are not
|
meillo@9
|
170 compelled to copy the source along with the object code.
|
meillo@9
|
171
|
meillo@9
|
172 4. You may not copy, modify, sublicense, or distribute the Program
|
meillo@9
|
173 except as expressly provided under this License. Any attempt
|
meillo@9
|
174 otherwise to copy, modify, sublicense or distribute the Program is
|
meillo@9
|
175 void, and will automatically terminate your rights under this License.
|
meillo@9
|
176 However, parties who have received copies, or rights, from you under
|
meillo@9
|
177 this License will not have their licenses terminated so long as such
|
meillo@9
|
178 parties remain in full compliance.
|
meillo@9
|
179
|
meillo@9
|
180 5. You are not required to accept this License, since you have not
|
meillo@9
|
181 signed it. However, nothing else grants you permission to modify or
|
meillo@9
|
182 distribute the Program or its derivative works. These actions are
|
meillo@9
|
183 prohibited by law if you do not accept this License. Therefore, by
|
meillo@9
|
184 modifying or distributing the Program (or any work based on the
|
meillo@9
|
185 Program), you indicate your acceptance of this License to do so, and
|
meillo@9
|
186 all its terms and conditions for copying, distributing or modifying
|
meillo@9
|
187 the Program or works based on it.
|
meillo@9
|
188
|
meillo@9
|
189 6. Each time you redistribute the Program (or any work based on the
|
meillo@9
|
190 Program), the recipient automatically receives a license from the
|
meillo@9
|
191 original licensor to copy, distribute or modify the Program subject to
|
meillo@9
|
192 these terms and conditions. You may not impose any further
|
meillo@9
|
193 restrictions on the recipients' exercise of the rights granted herein.
|
meillo@9
|
194 You are not responsible for enforcing compliance by third parties to
|
meillo@9
|
195 this License.
|
meillo@9
|
196
|
meillo@9
|
197 7. If, as a consequence of a court judgment or allegation of patent
|
meillo@9
|
198 infringement or for any other reason (not limited to patent issues),
|
meillo@9
|
199 conditions are imposed on you (whether by court order, agreement or
|
meillo@9
|
200 otherwise) that contradict the conditions of this License, they do not
|
meillo@9
|
201 excuse you from the conditions of this License. If you cannot
|
meillo@9
|
202 distribute so as to satisfy simultaneously your obligations under this
|
meillo@9
|
203 License and any other pertinent obligations, then as a consequence you
|
meillo@9
|
204 may not distribute the Program at all. For example, if a patent
|
meillo@9
|
205 license would not permit royalty-free redistribution of the Program by
|
meillo@9
|
206 all those who receive copies directly or indirectly through you, then
|
meillo@9
|
207 the only way you could satisfy both it and this License would be to
|
meillo@9
|
208 refrain entirely from distribution of the Program.
|
meillo@9
|
209
|
meillo@9
|
210 If any portion of this section is held invalid or unenforceable under
|
meillo@9
|
211 any particular circumstance, the balance of the section is intended to
|
meillo@9
|
212 apply and the section as a whole is intended to apply in other
|
meillo@9
|
213 circumstances.
|
meillo@9
|
214
|
meillo@9
|
215 It is not the purpose of this section to induce you to infringe any
|
meillo@9
|
216 patents or other property right claims or to contest validity of any
|
meillo@9
|
217 such claims; this section has the sole purpose of protecting the
|
meillo@9
|
218 integrity of the free software distribution system, which is
|
meillo@9
|
219 implemented by public license practices. Many people have made
|
meillo@9
|
220 generous contributions to the wide range of software distributed
|
meillo@9
|
221 through that system in reliance on consistent application of that
|
meillo@9
|
222 system; it is up to the author/donor to decide if he or she is willing
|
meillo@9
|
223 to distribute software through any other system and a licensee cannot
|
meillo@9
|
224 impose that choice.
|
meillo@9
|
225
|
meillo@9
|
226 This section is intended to make thoroughly clear what is believed to
|
meillo@9
|
227 be a consequence of the rest of this License.
|
meillo@9
|
228
|
meillo@9
|
229 8. If the distribution and/or use of the Program is restricted in
|
meillo@9
|
230 certain countries either by patents or by copyrighted interfaces, the
|
meillo@9
|
231 original copyright holder who places the Program under this License
|
meillo@9
|
232 may add an explicit geographical distribution limitation excluding
|
meillo@9
|
233 those countries, so that distribution is permitted only in or among
|
meillo@9
|
234 countries not thus excluded. In such case, this License incorporates
|
meillo@9
|
235 the limitation as if written in the body of this License.
|
meillo@9
|
236
|
meillo@9
|
237 9. The Free Software Foundation may publish revised and/or new versions
|
meillo@9
|
238 of the General Public License from time to time. Such new versions will
|
meillo@9
|
239 be similar in spirit to the present version, but may differ in detail to
|
meillo@9
|
240 address new problems or concerns.
|
meillo@9
|
241
|
meillo@9
|
242 Each version is given a distinguishing version number. If the Program
|
meillo@9
|
243 specifies a version number of this License which applies to it and "any
|
meillo@9
|
244 later version", you have the option of following the terms and conditions
|
meillo@9
|
245 either of that version or of any later version published by the Free
|
meillo@9
|
246 Software Foundation. If the Program does not specify a version number of
|
meillo@9
|
247 this License, you may choose any version ever published by the Free Software
|
meillo@9
|
248 Foundation.
|
meillo@9
|
249
|
meillo@9
|
250 10. If you wish to incorporate parts of the Program into other free
|
meillo@9
|
251 programs whose distribution conditions are different, write to the author
|
meillo@9
|
252 to ask for permission. For software which is copyrighted by the Free
|
meillo@9
|
253 Software Foundation, write to the Free Software Foundation; we sometimes
|
meillo@9
|
254 make exceptions for this. Our decision will be guided by the two goals
|
meillo@9
|
255 of preserving the free status of all derivatives of our free software and
|
meillo@9
|
256 of promoting the sharing and reuse of software generally.
|
meillo@9
|
257
|
meillo@9
|
258 NO WARRANTY
|
meillo@9
|
259
|
meillo@9
|
260 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
meillo@9
|
261 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
meillo@9
|
262 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
meillo@9
|
263 PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
meillo@9
|
264 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
meillo@9
|
265 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
meillo@9
|
266 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
meillo@9
|
267 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
meillo@9
|
268 REPAIR OR CORRECTION.
|
meillo@9
|
269
|
meillo@9
|
270 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
meillo@9
|
271 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
meillo@9
|
272 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
meillo@9
|
273 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
meillo@9
|
274 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
meillo@9
|
275 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
meillo@9
|
276 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
meillo@9
|
277 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
meillo@9
|
278 POSSIBILITY OF SUCH DAMAGES.
|
meillo@9
|
279
|
meillo@9
|
280 END OF TERMS AND CONDITIONS
|
meillo@9
|
281
|
meillo@9
|
282 How to Apply These Terms to Your New Programs
|
meillo@9
|
283
|
meillo@9
|
284 If you develop a new program, and you want it to be of the greatest
|
meillo@9
|
285 possible use to the public, the best way to achieve this is to make it
|
meillo@9
|
286 free software which everyone can redistribute and change under these terms.
|
meillo@9
|
287
|
meillo@9
|
288 To do so, attach the following notices to the program. It is safest
|
meillo@9
|
289 to attach them to the start of each source file to most effectively
|
meillo@9
|
290 convey the exclusion of warranty; and each file should have at least
|
meillo@9
|
291 the "copyright" line and a pointer to where the full notice is found.
|
meillo@9
|
292
|
meillo@9
|
293 <one line to give the program's name and a brief idea of what it does.>
|
meillo@9
|
294 Copyright (C) <year> <name of author>
|
meillo@9
|
295
|
meillo@9
|
296 This program is free software; you can redistribute it and/or modify
|
meillo@9
|
297 it under the terms of the GNU General Public License as published by
|
meillo@9
|
298 the Free Software Foundation; either version 2 of the License, or
|
meillo@9
|
299 (at your option) any later version.
|
meillo@9
|
300
|
meillo@9
|
301 This program is distributed in the hope that it will be useful,
|
meillo@9
|
302 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
meillo@9
|
303 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
meillo@9
|
304 GNU General Public License for more details.
|
meillo@9
|
305
|
meillo@9
|
306 You should have received a copy of the GNU General Public License along
|
meillo@9
|
307 with this program; if not, write to the Free Software Foundation, Inc.,
|
meillo@9
|
308 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
meillo@9
|
309
|
meillo@9
|
310 Also add information on how to contact you by electronic and paper mail.
|
meillo@9
|
311
|
meillo@9
|
312 If the program is interactive, make it output a short notice like this
|
meillo@9
|
313 when it starts in an interactive mode:
|
meillo@9
|
314
|
meillo@9
|
315 Gnomovision version 69, Copyright (C) year name of author
|
meillo@9
|
316 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
meillo@9
|
317 This is free software, and you are welcome to redistribute it
|
meillo@9
|
318 under certain conditions; type `show c' for details.
|
meillo@9
|
319
|
meillo@9
|
320 The hypothetical commands `show w' and `show c' should show the appropriate
|
meillo@9
|
321 parts of the General Public License. Of course, the commands you use may
|
meillo@9
|
322 be called something other than `show w' and `show c'; they could even be
|
meillo@9
|
323 mouse-clicks or menu items--whatever suits your program.
|
meillo@9
|
324
|
meillo@9
|
325 You should also get your employer (if you work as a programmer) or your
|
meillo@9
|
326 school, if any, to sign a "copyright disclaimer" for the program, if
|
meillo@9
|
327 necessary. Here is a sample; alter the names:
|
meillo@9
|
328
|
meillo@9
|
329 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
meillo@9
|
330 `Gnomovision' (which makes passes at compilers) written by James Hacker.
|
meillo@9
|
331
|
meillo@9
|
332 <signature of Ty Coon>, 1 April 1989
|
meillo@9
|
333 Ty Coon, President of Vice
|
meillo@9
|
334
|
meillo@9
|
335 This General Public License does not permit incorporating your program into
|
meillo@9
|
336 proprietary programs. If your program is a subroutine library, you may
|
meillo@9
|
337 consider it more useful to permit linking proprietary applications with the
|
meillo@9
|
338 library. If this is what you want to do, use the GNU Lesser General
|
meillo@9
|
339 Public License instead of this License.
|