LICENSE.txt 46 KB

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