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