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