1 This distribution includes a binary distribution of Mozilla Rhino 1.6 release 5
4 You can get the unpatched 1.6R5 release of Rhino from the following URL:
6 ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_6R5.zip
8 To obtain the source code for the 1.6R5 release of Rhino, issue the following
11 cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot \
12 co -D2006-11-20 mozilla/js/rhino
14 The patch is available here:
16 https://bugzilla.mozilla.org/attachment.cgi?id=288467
18 which is attached to this bug:
20 https://bugzilla.mozilla.org/show_bug.cgi?id=367627
22 Rhino is licensed under both the MPL (Mozilla Public License) 1.1 and the
23 GPL (GNU General Public License) 2.0, which are duplicated below.
25 The Rhino jar also includes four classes:
26 org.mozilla.javascript.tools.debugger.downloaded.AbstractCellEditor.java
27 org.mozilla.javascript.tools.debugger.downloaded.JTreeTable.java
28 org.mozilla.javascript.tools.debugger.downloaded.TreeTableModel.java
29 org.mozilla.javascript.tools.debugger.downloaded.TreeTableModelAdapter.java
31 http://java.sun.com/products/jfc/tsc/articles/treetable2
33 Under the following license:
37 Copyright 1994-2006 Sun Microsystems, Inc. All Rights Reserved.
39 Redistribution and use in source and binary forms, with or without
40 modification, are permitted provided that the following conditions are
44 * Redistribution of source code must retain the above copyright
45 notice, this list of conditions and the following disclaimer.
47 * Redistribution in binary form must reproduce the above copyright
48 notice, this list of conditions and the following disclaimer in
49 the documentation and/or other materials provided with the
53 Neither the name of Sun Microsystems, Inc. or the names of
54 contributors may be used to endorse or promote products derived from
55 this software without specific prior written permission.
57 This software is provided "AS IS," without a warranty of any kind. ALL
58 EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
59 INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
60 PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN
61 MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR
62 ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
63 DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR
64 ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR
65 DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE
66 DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY,
67 ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
68 SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
70 You acknowledge that this software is not designed, licensed or
71 intended for use in the design, construction, operation or maintenance
72 of any nuclear facility.
76 ==============================================================================
78 MOZILLA PUBLIC LICENSE
85 1.0.1. "Commercial Use" means distribution or otherwise making the
86 Covered Code available to a third party.
88 1.1. "Contributor" means each entity that creates or contributes to
89 the creation of Modifications.
91 1.2. "Contributor Version" means the combination of the Original
92 Code, prior Modifications used by a Contributor, and the Modifications
93 made by that particular Contributor.
95 1.3. "Covered Code" means the Original Code or Modifications or the
96 combination of the Original Code and Modifications, in each case
97 including portions thereof.
99 1.4. "Electronic Distribution Mechanism" means a mechanism generally
100 accepted in the software development community for the electronic
103 1.5. "Executable" means Covered Code in any form other than Source
106 1.6. "Initial Developer" means the individual or entity identified
107 as the Initial Developer in the Source Code notice required by Exhibit
110 1.7. "Larger Work" means a work which combines Covered Code or
111 portions thereof with code not governed by the terms of this License.
113 1.8. "License" means this document.
115 1.8.1. "Licensable" means having the right to grant, to the maximum
116 extent possible, whether at the time of the initial grant or
117 subsequently acquired, any and all of the rights conveyed herein.
119 1.9. "Modifications" means any addition to or deletion from the
120 substance or structure of either the Original Code or any previous
121 Modifications. When Covered Code is released as a series of files, a
123 A. Any addition to or deletion from the contents of a file
124 containing Original Code or previous Modifications.
126 B. Any new file that contains any part of the Original Code or
127 previous Modifications.
129 1.10. "Original Code" means Source Code of computer software code
130 which is described in the Source Code notice required by Exhibit A as
131 Original Code, and which, at the time of its release under this
132 License is not already Covered Code governed by this License.
134 1.10.1. "Patent Claims" means any patent claim(s), now owned or
135 hereafter acquired, including without limitation, method, process,
136 and apparatus claims, in any patent Licensable by grantor.
138 1.11. "Source Code" means the preferred form of the Covered Code for
139 making modifications to it, including all modules it contains, plus
140 any associated interface definition files, scripts used to control
141 compilation and installation of an Executable, or source code
142 differential comparisons against either the Original Code or another
143 well known, available Covered Code of the Contributor's choice. The
144 Source Code can be in a compressed or archival form, provided the
145 appropriate decompression or de-archiving software is widely available
148 1.12. "You" (or "Your") means an individual or a legal entity
149 exercising rights under, and complying with all of the terms of, this
150 License or a future version of this License issued under Section 6.1.
151 For legal entities, "You" includes any entity which controls, is
152 controlled by, or is under common control with You. For purposes of
153 this definition, "control" means (a) the power, direct or indirect,
154 to cause the direction or management of such entity, whether by
155 contract or otherwise, or (b) ownership of more than fifty percent
156 (50%) of the outstanding shares or beneficial ownership of such
159 2. Source Code License.
161 2.1. The Initial Developer Grant.
162 The Initial Developer hereby grants You a world-wide, royalty-free,
163 non-exclusive license, subject to third party intellectual property
165 (a) under intellectual property rights (other than patent or
166 trademark) Licensable by Initial Developer to use, reproduce,
167 modify, display, perform, sublicense and distribute the Original
168 Code (or portions thereof) with or without Modifications, and/or
169 as part of a Larger Work; and
171 (b) under Patents Claims infringed by the making, using or
172 selling of Original Code, to make, have made, use, practice,
173 sell, and offer for sale, and/or otherwise dispose of the
174 Original Code (or portions thereof).
176 (c) the licenses granted in this Section 2.1(a) and (b) are
177 effective on the date Initial Developer first distributes
178 Original Code under the terms of this License.
180 (d) Notwithstanding Section 2.1(b) above, no patent license is
181 granted: 1) for code that You delete from the Original Code; 2)
182 separate from the Original Code; or 3) for infringements caused
183 by: i) the modification of the Original Code or ii) the
184 combination of the Original Code with other software or devices.
186 2.2. Contributor Grant.
187 Subject to third party intellectual property claims, each Contributor
188 hereby grants You a world-wide, royalty-free, non-exclusive license
190 (a) under intellectual property rights (other than patent or
191 trademark) Licensable by Contributor, to use, reproduce, modify,
192 display, perform, sublicense and distribute the Modifications
193 created by such Contributor (or portions thereof) either on an
194 unmodified basis, with other Modifications, as Covered Code
195 and/or as part of a Larger Work; and
197 (b) under Patent Claims infringed by the making, using, or
198 selling of Modifications made by that Contributor either alone
199 and/or in combination with its Contributor Version (or portions
200 of such combination), to make, use, sell, offer for sale, have
201 made, and/or otherwise dispose of: 1) Modifications made by that
202 Contributor (or portions thereof); and 2) the combination of
203 Modifications made by that Contributor with its Contributor
204 Version (or portions of such combination).
206 (c) the licenses granted in Sections 2.2(a) and 2.2(b) are
207 effective on the date Contributor first makes Commercial Use of
210 (d) Notwithstanding Section 2.2(b) above, no patent license is
211 granted: 1) for any code that Contributor has deleted from the
212 Contributor Version; 2) separate from the Contributor Version;
213 3) for infringements caused by: i) third party modifications of
214 Contributor Version or ii) the combination of Modifications made
215 by that Contributor with other software (except as part of the
216 Contributor Version) or other devices; or 4) under Patent Claims
217 infringed by Covered Code in the absence of Modifications made by
220 3. Distribution Obligations.
222 3.1. Application of License.
223 The Modifications which You create or to which You contribute are
224 governed by the terms of this License, including without limitation
225 Section 2.2. The Source Code version of Covered Code may be
226 distributed only under the terms of this License or a future version
227 of this License released under Section 6.1, and You must include a
228 copy of this License with every copy of the Source Code You
229 distribute. You may not offer or impose any terms on any Source Code
230 version that alters or restricts the applicable version of this
231 License or the recipients' rights hereunder. However, You may include
232 an additional document offering the additional rights described in
235 3.2. Availability of Source Code.
236 Any Modification which You create or to which You contribute must be
237 made available in Source Code form under the terms of this License
238 either on the same media as an Executable version or via an accepted
239 Electronic Distribution Mechanism to anyone to whom you made an
240 Executable version available; and if made available via Electronic
241 Distribution Mechanism, must remain available for at least twelve (12)
242 months after the date it initially became available, or at least six
243 (6) months after a subsequent version of that particular Modification
244 has been made available to such recipients. You are responsible for
245 ensuring that the Source Code version remains available even if the
246 Electronic Distribution Mechanism is maintained by a third party.
248 3.3. Description of Modifications.
249 You must cause all Covered Code to which You contribute to contain a
250 file documenting the changes You made to create that Covered Code and
251 the date of any change. You must include a prominent statement that
252 the Modification is derived, directly or indirectly, from Original
253 Code provided by the Initial Developer and including the name of the
254 Initial Developer in (a) the Source Code, and (b) in any notice in an
255 Executable version or related documentation in which You describe the
256 origin or ownership of the Covered Code.
258 3.4. Intellectual Property Matters
259 (a) Third Party Claims.
260 If Contributor has knowledge that a license under a third party's
261 intellectual property rights is required to exercise the rights
262 granted by such Contributor under Sections 2.1 or 2.2,
263 Contributor must include a text file with the Source Code
264 distribution titled "LEGAL" which describes the claim and the
265 party making the claim in sufficient detail that a recipient will
266 know whom to contact. If Contributor obtains such knowledge after
267 the Modification is made available as described in Section 3.2,
268 Contributor shall promptly modify the LEGAL file in all copies
269 Contributor makes available thereafter and shall take other steps
270 (such as notifying appropriate mailing lists or newsgroups)
271 reasonably calculated to inform those who received the Covered
272 Code that new knowledge has been obtained.
274 (b) Contributor APIs.
275 If Contributor's Modifications include an application programming
276 interface and Contributor has knowledge of patent licenses which
277 are reasonably necessary to implement that API, Contributor must
278 also include this information in the LEGAL file.
281 Contributor represents that, except as disclosed pursuant to
282 Section 3.4(a) above, Contributor believes that Contributor's
283 Modifications are Contributor's original creation(s) and/or
284 Contributor has sufficient rights to grant the rights conveyed by
287 3.5. Required Notices.
288 You must duplicate the notice in Exhibit A in each file of the Source
289 Code. If it is not possible to put such notice in a particular Source
290 Code file due to its structure, then You must include such notice in a
291 location (such as a relevant directory) where a user would be likely
292 to look for such a notice. If You created one or more Modification(s)
293 You may add your name as a Contributor to the notice described in
294 Exhibit A. You must also duplicate this License in any documentation
295 for the Source Code where You describe recipients' rights or ownership
296 rights relating to Covered Code. You may choose to offer, and to
297 charge a fee for, warranty, support, indemnity or liability
298 obligations to one or more recipients of Covered Code. However, You
299 may do so only on Your own behalf, and not on behalf of the Initial
300 Developer or any Contributor. You must make it absolutely clear than
301 any such warranty, support, indemnity or liability obligation is
302 offered by You alone, and You hereby agree to indemnify the Initial
303 Developer and every Contributor for any liability incurred by the
304 Initial Developer or such Contributor as a result of warranty,
305 support, indemnity or liability terms You offer.
307 3.6. Distribution of Executable Versions.
308 You may distribute Covered Code in Executable form only if the
309 requirements of Section 3.1-3.5 have been met for that Covered Code,
310 and if You include a notice stating that the Source Code version of
311 the Covered Code is available under the terms of this License,
312 including a description of how and where You have fulfilled the
313 obligations of Section 3.2. The notice must be conspicuously included
314 in any notice in an Executable version, related documentation or
315 collateral in which You describe recipients' rights relating to the
316 Covered Code. You may distribute the Executable version of Covered
317 Code or ownership rights under a license of Your choice, which may
318 contain terms different from this License, provided that You are in
319 compliance with the terms of this License and that the license for the
320 Executable version does not attempt to limit or alter the recipient's
321 rights in the Source Code version from the rights set forth in this
322 License. If You distribute the Executable version under a different
323 license You must make it absolutely clear that any terms which differ
324 from this License are offered by You alone, not by the Initial
325 Developer or any Contributor. You hereby agree to indemnify the
326 Initial Developer and every Contributor for any liability incurred by
327 the Initial Developer or such Contributor as a result of any such
331 You may create a Larger Work by combining Covered Code with other code
332 not governed by the terms of this License and distribute the Larger
333 Work as a single product. In such a case, You must make sure the
334 requirements of this License are fulfilled for the Covered Code.
336 4. Inability to Comply Due to Statute or Regulation.
338 If it is impossible for You to comply with any of the terms of this
339 License with respect to some or all of the Covered Code due to
340 statute, judicial order, or regulation then You must: (a) comply with
341 the terms of this License to the maximum extent possible; and (b)
342 describe the limitations and the code they affect. Such description
343 must be included in the LEGAL file described in Section 3.4 and must
344 be included with all distributions of the Source Code. Except to the
345 extent prohibited by statute or regulation, such description must be
346 sufficiently detailed for a recipient of ordinary skill to be able to
349 5. Application of this License.
351 This License applies to code to which the Initial Developer has
352 attached the notice in Exhibit A and to related Covered Code.
354 6. Versions of the License.
357 Netscape Communications Corporation ("Netscape") may publish revised
358 and/or new versions of the License from time to time. Each version
359 will be given a distinguishing version number.
361 6.2. Effect of New Versions.
362 Once Covered Code has been published under a particular version of the
363 License, You may always continue to use it under the terms of that
364 version. You may also choose to use such Covered Code under the terms
365 of any subsequent version of the License published by Netscape. No one
366 other than Netscape has the right to modify the terms applicable to
367 Covered Code created under this License.
369 6.3. Derivative Works.
370 If You create or use a modified version of this License (which you may
371 only do in order to apply it to code which is not already Covered Code
372 governed by this License), You must (a) rename Your license so that
373 the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape",
374 "MPL", "NPL" or any confusingly similar phrase do not appear in your
375 license (except to note that your license differs from this License)
376 and (b) otherwise make it clear that Your version of the license
377 contains terms which differ from the Mozilla Public License and
378 Netscape Public License. (Filling in the name of the Initial
379 Developer, Original Code or Contributor in the notice described in
380 Exhibit A shall not of themselves be deemed to be modifications of
383 7. DISCLAIMER OF WARRANTY.
385 COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
386 WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
387 WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
388 DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
389 THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
390 IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
391 YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
392 COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
393 OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
394 ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
398 8.1. This License and the rights granted hereunder will terminate
399 automatically if You fail to comply with terms herein and fail to cure
400 such breach within 30 days of becoming aware of the breach. All
401 sublicenses to the Covered Code which are properly granted shall
402 survive any termination of this License. Provisions which, by their
403 nature, must remain in effect beyond the termination of this License
406 8.2. If You initiate litigation by asserting a patent infringement
407 claim (excluding declatory judgment actions) against Initial Developer
408 or a Contributor (the Initial Developer or Contributor against whom
409 You file such action is referred to as "Participant") alleging that:
411 (a) such Participant's Contributor Version directly or indirectly
412 infringes any patent, then any and all rights granted by such
413 Participant to You under Sections 2.1 and/or 2.2 of this License
414 shall, upon 60 days notice from Participant terminate prospectively,
415 unless if within 60 days after receipt of notice You either: (i)
416 agree in writing to pay Participant a mutually agreeable reasonable
417 royalty for Your past and future use of Modifications made by such
418 Participant, or (ii) withdraw Your litigation claim with respect to
419 the Contributor Version against such Participant. If within 60 days
420 of notice, a reasonable royalty and payment arrangement are not
421 mutually agreed upon in writing by the parties or the litigation claim
422 is not withdrawn, the rights granted by Participant to You under
423 Sections 2.1 and/or 2.2 automatically terminate at the expiration of
424 the 60 day notice period specified above.
426 (b) any software, hardware, or device, other than such Participant's
427 Contributor Version, directly or indirectly infringes any patent, then
428 any rights granted to You by such Participant under Sections 2.1(b)
429 and 2.2(b) are revoked effective as of the date You first made, used,
430 sold, distributed, or had made, Modifications made by that
433 8.3. If You assert a patent infringement claim against Participant
434 alleging that such Participant's Contributor Version directly or
435 indirectly infringes any patent where such claim is resolved (such as
436 by license or settlement) prior to the initiation of patent
437 infringement litigation, then the reasonable value of the licenses
438 granted by such Participant under Sections 2.1 or 2.2 shall be taken
439 into account in determining the amount or value of any payment or
442 8.4. In the event of termination under Sections 8.1 or 8.2 above,
443 all end user license agreements (excluding distributors and resellers)
444 which have been validly granted by You or any distributor hereunder
445 prior to termination shall survive termination.
447 9. LIMITATION OF LIABILITY.
449 UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
450 (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
451 DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
452 OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR
453 ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
454 CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL,
455 WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
456 COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
457 INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
458 LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
459 RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
460 PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
461 EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO
462 THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
464 10. U.S. GOVERNMENT END USERS.
466 The Covered Code is a "commercial item," as that term is defined in
467 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
468 software" and "commercial computer software documentation," as such
469 terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
470 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
471 all U.S. Government End Users acquire Covered Code with only those
472 rights set forth herein.
476 This License represents the complete agreement concerning subject
477 matter hereof. If any provision of this License is held to be
478 unenforceable, such provision shall be reformed only to the extent
479 necessary to make it enforceable. This License shall be governed by
480 California law provisions (except to the extent applicable law, if
481 any, provides otherwise), excluding its conflict-of-law provisions.
482 With respect to disputes in which at least one party is a citizen of,
483 or an entity chartered or registered to do business in the United
484 States of America, any litigation relating to this License shall be
485 subject to the jurisdiction of the Federal Courts of the Northern
486 District of California, with venue lying in Santa Clara County,
487 California, with the losing party responsible for costs, including
488 without limitation, court costs and reasonable attorneys' fees and
489 expenses. The application of the United Nations Convention on
490 Contracts for the International Sale of Goods is expressly excluded.
491 Any law or regulation which provides that the language of a contract
492 shall be construed against the drafter shall not apply to this
495 12. RESPONSIBILITY FOR CLAIMS.
497 As between Initial Developer and the Contributors, each party is
498 responsible for claims and damages arising, directly or indirectly,
499 out of its utilization of rights under this License and You agree to
500 work with Initial Developer and Contributors to distribute such
501 responsibility on an equitable basis. Nothing herein is intended or
502 shall be deemed to constitute any admission of liability.
504 13. MULTIPLE-LICENSED CODE.
506 Initial Developer may designate portions of the Covered Code as
507 "Multiple-Licensed". "Multiple-Licensed" means that the Initial
508 Developer permits you to utilize portions of the Covered Code under
509 Your choice of the NPL or the alternative licenses, if any, specified
510 by the Initial Developer in the file described in Exhibit A.
512 EXHIBIT A -Mozilla Public License.
514 ``The contents of this file are subject to the Mozilla Public License
515 Version 1.1 (the "License"); you may not use this file except in
516 compliance with the License. You may obtain a copy of the License at
517 http://www.mozilla.org/MPL/
519 Software distributed under the License is distributed on an "AS IS"
520 basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
521 License for the specific language governing rights and limitations
524 The Original Code is ______________________________________.
526 The Initial Developer of the Original Code is ________________________.
527 Portions created by ______________________ are Copyright (C) ______
528 _______________________. All Rights Reserved.
530 Contributor(s): ______________________________________.
532 Alternatively, the contents of this file may be used under the terms
533 of the _____ license (the "[___] License"), in which case the
534 provisions of [______] License are applicable instead of those
535 above. If you wish to allow use of your version of this file only
536 under the terms of the [____] License and not to allow others to use
537 your version of this file under the MPL, indicate your decision by
538 deleting the provisions above and replace them with the notice and
539 other provisions required by the [___] License. If you do not delete
540 the provisions above, a recipient may use your version of this file
541 under either the MPL or the [___] License."
543 [NOTE: The text of this Exhibit A may differ slightly from the text of
544 the notices in the Source Code files of the Original Code. You should
545 use the text of this Exhibit A rather than the text found in the
546 Original Code Source Code for Your Modifications.]
548 ==============================================================================
550 GNU GENERAL PUBLIC LICENSE
553 Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
554 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
555 Everyone is permitted to copy and distribute verbatim copies
556 of this license document, but changing it is not allowed.
560 The licenses for most software are designed to take away your
561 freedom to share and change it. By contrast, the GNU General Public
562 License is intended to guarantee your freedom to share and change free
563 software--to make sure the software is free for all its users. This
564 General Public License applies to most of the Free Software
565 Foundation's software and to any other program whose authors commit to
566 using it. (Some other Free Software Foundation software is covered by
567 the GNU Lesser General Public License instead.) You can apply it to
570 When we speak of free software, we are referring to freedom, not
571 price. Our General Public Licenses are designed to make sure that you
572 have the freedom to distribute copies of free software (and charge for
573 this service if you wish), that you receive source code or can get it
574 if you want it, that you can change the software or use pieces of it
575 in new free programs; and that you know you can do these things.
577 To protect your rights, we need to make restrictions that forbid
578 anyone to deny you these rights or to ask you to surrender the rights.
579 These restrictions translate to certain responsibilities for you if you
580 distribute copies of the software, or if you modify it.
582 For example, if you distribute copies of such a program, whether
583 gratis or for a fee, you must give the recipients all the rights that
584 you have. You must make sure that they, too, receive or can get the
585 source code. And you must show them these terms so they know their
588 We protect your rights with two steps: (1) copyright the software, and
589 (2) offer you this license which gives you legal permission to copy,
590 distribute and/or modify the software.
592 Also, for each author's protection and ours, we want to make certain
593 that everyone understands that there is no warranty for this free
594 software. If the software is modified by someone else and passed on, we
595 want its recipients to know that what they have is not the original, so
596 that any problems introduced by others will not reflect on the original
597 authors' reputations.
599 Finally, any free program is threatened constantly by software
600 patents. We wish to avoid the danger that redistributors of a free
601 program will individually obtain patent licenses, in effect making the
602 program proprietary. To prevent this, we have made it clear that any
603 patent must be licensed for everyone's free use or not licensed at all.
605 The precise terms and conditions for copying, distribution and
608 GNU GENERAL PUBLIC LICENSE
609 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
611 0. This License applies to any program or other work which contains
612 a notice placed by the copyright holder saying it may be distributed
613 under the terms of this General Public License. The "Program", below,
614 refers to any such program or work, and a "work based on the Program"
615 means either the Program or any derivative work under copyright law:
616 that is to say, a work containing the Program or a portion of it,
617 either verbatim or with modifications and/or translated into another
618 language. (Hereinafter, translation is included without limitation in
619 the term "modification".) Each licensee is addressed as "you".
621 Activities other than copying, distribution and modification are not
622 covered by this License; they are outside its scope. The act of
623 running the Program is not restricted, and the output from the Program
624 is covered only if its contents constitute a work based on the
625 Program (independent of having been made by running the Program).
626 Whether that is true depends on what the Program does.
628 1. You may copy and distribute verbatim copies of the Program's
629 source code as you receive it, in any medium, provided that you
630 conspicuously and appropriately publish on each copy an appropriate
631 copyright notice and disclaimer of warranty; keep intact all the
632 notices that refer to this License and to the absence of any warranty;
633 and give any other recipients of the Program a copy of this License
634 along with the Program.
636 You may charge a fee for the physical act of transferring a copy, and
637 you may at your option offer warranty protection in exchange for a fee.
639 2. You may modify your copy or copies of the Program or any portion
640 of it, thus forming a work based on the Program, and copy and
641 distribute such modifications or work under the terms of Section 1
642 above, provided that you also meet all of these conditions:
644 a) You must cause the modified files to carry prominent notices
645 stating that you changed the files and the date of any change.
647 b) You must cause any work that you distribute or publish, that in
648 whole or in part contains or is derived from the Program or any
649 part thereof, to be licensed as a whole at no charge to all third
650 parties under the terms of this License.
652 c) If the modified program normally reads commands interactively
653 when run, you must cause it, when started running for such
654 interactive use in the most ordinary way, to print or display an
655 announcement including an appropriate copyright notice and a
656 notice that there is no warranty (or else, saying that you provide
657 a warranty) and that users may redistribute the program under
658 these conditions, and telling the user how to view a copy of this
659 License. (Exception: if the Program itself is interactive but
660 does not normally print such an announcement, your work based on
661 the Program is not required to print an announcement.)
663 These requirements apply to the modified work as a whole. If
664 identifiable sections of that work are not derived from the Program,
665 and can be reasonably considered independent and separate works in
666 themselves, then this License, and its terms, do not apply to those
667 sections when you distribute them as separate works. But when you
668 distribute the same sections as part of a whole which is a work based
669 on the Program, the distribution of the whole must be on the terms of
670 this License, whose permissions for other licensees extend to the
671 entire whole, and thus to each and every part regardless of who wrote it.
673 Thus, it is not the intent of this section to claim rights or contest
674 your rights to work written entirely by you; rather, the intent is to
675 exercise the right to control the distribution of derivative or
676 collective works based on the Program.
678 In addition, mere aggregation of another work not based on the Program
679 with the Program (or with a work based on the Program) on a volume of
680 a storage or distribution medium does not bring the other work under
681 the scope of this License.
683 3. You may copy and distribute the Program (or a work based on it,
684 under Section 2) in object code or executable form under the terms of
685 Sections 1 and 2 above provided that you also do one of the following:
687 a) Accompany it with the complete corresponding machine-readable
688 source code, which must be distributed under the terms of Sections
689 1 and 2 above on a medium customarily used for software interchange; or,
691 b) Accompany it with a written offer, valid for at least three
692 years, to give any third party, for a charge no more than your
693 cost of physically performing source distribution, a complete
694 machine-readable copy of the corresponding source code, to be
695 distributed under the terms of Sections 1 and 2 above on a medium
696 customarily used for software interchange; or,
698 c) Accompany it with the information you received as to the offer
699 to distribute corresponding source code. (This alternative is
700 allowed only for noncommercial distribution and only if you
701 received the program in object code or executable form with such
702 an offer, in accord with Subsection b above.)
704 The source code for a work means the preferred form of the work for
705 making modifications to it. For an executable work, complete source
706 code means all the source code for all modules it contains, plus any
707 associated interface definition files, plus the scripts used to
708 control compilation and installation of the executable. However, as a
709 special exception, the source code distributed need not include
710 anything that is normally distributed (in either source or binary
711 form) with the major components (compiler, kernel, and so on) of the
712 operating system on which the executable runs, unless that component
713 itself accompanies the executable.
715 If distribution of executable or object code is made by offering
716 access to copy from a designated place, then offering equivalent
717 access to copy the source code from the same place counts as
718 distribution of the source code, even though third parties are not
719 compelled to copy the source along with the object code.
721 4. You may not copy, modify, sublicense, or distribute the Program
722 except as expressly provided under this License. Any attempt
723 otherwise to copy, modify, sublicense or distribute the Program is
724 void, and will automatically terminate your rights under this License.
725 However, parties who have received copies, or rights, from you under
726 this License will not have their licenses terminated so long as such
727 parties remain in full compliance.
729 5. You are not required to accept this License, since you have not
730 signed it. However, nothing else grants you permission to modify or
731 distribute the Program or its derivative works. These actions are
732 prohibited by law if you do not accept this License. Therefore, by
733 modifying or distributing the Program (or any work based on the
734 Program), you indicate your acceptance of this License to do so, and
735 all its terms and conditions for copying, distributing or modifying
736 the Program or works based on it.
738 6. Each time you redistribute the Program (or any work based on the
739 Program), the recipient automatically receives a license from the
740 original licensor to copy, distribute or modify the Program subject to
741 these terms and conditions. You may not impose any further
742 restrictions on the recipients' exercise of the rights granted herein.
743 You are not responsible for enforcing compliance by third parties to
746 7. If, as a consequence of a court judgment or allegation of patent
747 infringement or for any other reason (not limited to patent issues),
748 conditions are imposed on you (whether by court order, agreement or
749 otherwise) that contradict the conditions of this License, they do not
750 excuse you from the conditions of this License. If you cannot
751 distribute so as to satisfy simultaneously your obligations under this
752 License and any other pertinent obligations, then as a consequence you
753 may not distribute the Program at all. For example, if a patent
754 license would not permit royalty-free redistribution of the Program by
755 all those who receive copies directly or indirectly through you, then
756 the only way you could satisfy both it and this License would be to
757 refrain entirely from distribution of the Program.
759 If any portion of this section is held invalid or unenforceable under
760 any particular circumstance, the balance of the section is intended to
761 apply and the section as a whole is intended to apply in other
764 It is not the purpose of this section to induce you to infringe any
765 patents or other property right claims or to contest validity of any
766 such claims; this section has the sole purpose of protecting the
767 integrity of the free software distribution system, which is
768 implemented by public license practices. Many people have made
769 generous contributions to the wide range of software distributed
770 through that system in reliance on consistent application of that
771 system; it is up to the author/donor to decide if he or she is willing
772 to distribute software through any other system and a licensee cannot
775 This section is intended to make thoroughly clear what is believed to
776 be a consequence of the rest of this License.
778 8. If the distribution and/or use of the Program is restricted in
779 certain countries either by patents or by copyrighted interfaces, the
780 original copyright holder who places the Program under this License
781 may add an explicit geographical distribution limitation excluding
782 those countries, so that distribution is permitted only in or among
783 countries not thus excluded. In such case, this License incorporates
784 the limitation as if written in the body of this License.
786 9. The Free Software Foundation may publish revised and/or new versions
787 of the General Public License from time to time. Such new versions will
788 be similar in spirit to the present version, but may differ in detail to
789 address new problems or concerns.
791 Each version is given a distinguishing version number. If the Program
792 specifies a version number of this License which applies to it and "any
793 later version", you have the option of following the terms and conditions
794 either of that version or of any later version published by the Free
795 Software Foundation. If the Program does not specify a version number of
796 this License, you may choose any version ever published by the Free Software
799 10. If you wish to incorporate parts of the Program into other free
800 programs whose distribution conditions are different, write to the author
801 to ask for permission. For software which is copyrighted by the Free
802 Software Foundation, write to the Free Software Foundation; we sometimes
803 make exceptions for this. Our decision will be guided by the two goals
804 of preserving the free status of all derivatives of our free software and
805 of promoting the sharing and reuse of software generally.
809 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
810 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
811 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
812 PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
813 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
814 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
815 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
816 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
817 REPAIR OR CORRECTION.
819 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
820 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
821 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
822 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
823 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
824 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
825 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
826 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
827 POSSIBILITY OF SUCH DAMAGES.
829 END OF TERMS AND CONDITIONS
831 How to Apply These Terms to Your New Programs
833 If you develop a new program, and you want it to be of the greatest
834 possible use to the public, the best way to achieve this is to make it
835 free software which everyone can redistribute and change under these terms.
837 To do so, attach the following notices to the program. It is safest
838 to attach them to the start of each source file to most effectively
839 convey the exclusion of warranty; and each file should have at least
840 the "copyright" line and a pointer to where the full notice is found.
842 <one line to give the program's name and a brief idea of what it does.>
843 Copyright (C) <year> <name of author>
845 This program is free software; you can redistribute it and/or modify
846 it under the terms of the GNU General Public License as published by
847 the Free Software Foundation; either version 2 of the License, or
848 (at your option) any later version.
850 This program is distributed in the hope that it will be useful,
851 but WITHOUT ANY WARRANTY; without even the implied warranty of
852 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
853 GNU General Public License for more details.
855 You should have received a copy of the GNU General Public License along
856 with this program; if not, write to the Free Software Foundation, Inc.,
857 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
859 Also add information on how to contact you by electronic and paper mail.
861 If the program is interactive, make it output a short notice like this
862 when it starts in an interactive mode:
864 Gnomovision version 69, Copyright (C) year name of author
865 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
866 This is free software, and you are welcome to redistribute it
867 under certain conditions; type `show c' for details.
869 The hypothetical commands `show w' and `show c' should show the appropriate
870 parts of the General Public License. Of course, the commands you use may
871 be called something other than `show w' and `show c'; they could even be
872 mouse-clicks or menu items--whatever suits your program.
874 You should also get your employer (if you work as a programmer) or your
875 school, if any, to sign a "copyright disclaimer" for the program, if
876 necessary. Here is a sample; alter the names:
878 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
879 `Gnomovision' (which makes passes at compilers) written by James Hacker.
881 <signature of Ty Coon>, 1 April 1989
882 Ty Coon, President of Vice
884 This General Public License does not permit incorporating your program into
885 proprietary programs. If your program is a subroutine library, you may
886 consider it more useful to permit linking proprietary applications with the
887 library. If this is what you want to do, use the GNU Lesser General
888 Public License instead of this License.
890 ==============================================================================