1204431Sraj GNU GENERAL PUBLIC LICENSE 2204431Sraj Version 2, June 1991 3204431Sraj 4204431Sraj Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5204431Sraj 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 6204431Sraj Everyone is permitted to copy and distribute verbatim copies 7204431Sraj of this license document, but changing it is not allowed. 8204431Sraj 9204431Sraj Preamble 10204431Sraj 11204431Sraj The licenses for most software are designed to take away your 12204431Srajfreedom to share and change it. By contrast, the GNU General Public 13204431SrajLicense is intended to guarantee your freedom to share and change free 14204431Srajsoftware--to make sure the software is free for all its users. This 15204431SrajGeneral Public License applies to most of the Free Software 16204431SrajFoundation's software and to any other program whose authors commit to 17204431Srajusing it. (Some other Free Software Foundation software is covered by 18204431Srajthe GNU Library General Public License instead.) You can apply it to 19204431Srajyour programs, too. 20204431Sraj 21204431Sraj When we speak of free software, we are referring to freedom, not 22204431Srajprice. Our General Public Licenses are designed to make sure that you 23204431Srajhave the freedom to distribute copies of free software (and charge for 24204431Srajthis service if you wish), that you receive source code or can get it 25204431Srajif you want it, that you can change the software or use pieces of it 26204431Srajin new free programs; and that you know you can do these things. 27204431Sraj 28204431Sraj To protect your rights, we need to make restrictions that forbid 29204431Srajanyone to deny you these rights or to ask you to surrender the rights. 30204431SrajThese restrictions translate to certain responsibilities for you if you 31204431Srajdistribute copies of the software, or if you modify it. 32204431Sraj 33204431Sraj For example, if you distribute copies of such a program, whether 34204431Srajgratis or for a fee, you must give the recipients all the rights that 35204431Srajyou have. You must make sure that they, too, receive or can get the 36204431Srajsource code. And you must show them these terms so they know their 37204431Srajrights. 38204431Sraj 39204431Sraj We protect your rights with two steps: (1) copyright the software, and 40204431Sraj(2) offer you this license which gives you legal permission to copy, 41204431Srajdistribute and/or modify the software. 42204431Sraj 43204431Sraj Also, for each author's protection and ours, we want to make certain 44204431Srajthat everyone understands that there is no warranty for this free 45204431Srajsoftware. If the software is modified by someone else and passed on, we 46204431Srajwant its recipients to know that what they have is not the original, so 47204431Srajthat any problems introduced by others will not reflect on the original 48204431Srajauthors' reputations. 49204431Sraj 50204431Sraj Finally, any free program is threatened constantly by software 51204431Srajpatents. We wish to avoid the danger that redistributors of a free 52204431Srajprogram will individually obtain patent licenses, in effect making the 53204431Srajprogram proprietary. To prevent this, we have made it clear that any 54204431Srajpatent must be licensed for everyone's free use or not licensed at all. 55204431Sraj 56204431Sraj The precise terms and conditions for copying, distribution and 57204431Srajmodification follow. 58204431Sraj 59204431Sraj GNU GENERAL PUBLIC LICENSE 60204431Sraj TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61204431Sraj 62204431Sraj 0. This License applies to any program or other work which contains 63204431Sraja notice placed by the copyright holder saying it may be distributed 64204431Srajunder the terms of this General Public License. The "Program", below, 65204431Srajrefers to any such program or work, and a "work based on the Program" 66204431Srajmeans either the Program or any derivative work under copyright law: 67204431Srajthat is to say, a work containing the Program or a portion of it, 68204431Srajeither verbatim or with modifications and/or translated into another 69204431Srajlanguage. (Hereinafter, translation is included without limitation in 70204431Srajthe term "modification".) Each licensee is addressed as "you". 71204431Sraj 72204431SrajActivities other than copying, distribution and modification are not 73204431Srajcovered by this License; they are outside its scope. The act of 74204431Srajrunning the Program is not restricted, and the output from the Program 75204431Srajis covered only if its contents constitute a work based on the 76204431SrajProgram (independent of having been made by running the Program). 77204431SrajWhether that is true depends on what the Program does. 78204431Sraj 79204431Sraj 1. You may copy and distribute verbatim copies of the Program's 80204431Srajsource code as you receive it, in any medium, provided that you 81204431Srajconspicuously and appropriately publish on each copy an appropriate 82204431Srajcopyright notice and disclaimer of warranty; keep intact all the 83204431Srajnotices that refer to this License and to the absence of any warranty; 84204431Srajand give any other recipients of the Program a copy of this License 85204431Srajalong with the Program. 86204431Sraj 87204431SrajYou may charge a fee for the physical act of transferring a copy, and 88204431Srajyou may at your option offer warranty protection in exchange for a fee. 89204431Sraj 90204431Sraj 2. You may modify your copy or copies of the Program or any portion 91204431Srajof it, thus forming a work based on the Program, and copy and 92204431Srajdistribute such modifications or work under the terms of Section 1 93204431Srajabove, provided that you also meet all of these conditions: 94204431Sraj 95204431Sraj a) You must cause the modified files to carry prominent notices 96204431Sraj stating that you changed the files and the date of any change. 97204431Sraj 98204431Sraj b) You must cause any work that you distribute or publish, that in 99204431Sraj whole or in part contains or is derived from the Program or any 100204431Sraj part thereof, to be licensed as a whole at no charge to all third 101204431Sraj parties under the terms of this License. 102204431Sraj 103204431Sraj c) If the modified program normally reads commands interactively 104204431Sraj when run, you must cause it, when started running for such 105204431Sraj interactive use in the most ordinary way, to print or display an 106204431Sraj announcement including an appropriate copyright notice and a 107204431Sraj notice that there is no warranty (or else, saying that you provide 108204431Sraj a warranty) and that users may redistribute the program under 109204431Sraj these conditions, and telling the user how to view a copy of this 110204431Sraj License. (Exception: if the Program itself is interactive but 111204431Sraj does not normally print such an announcement, your work based on 112204431Sraj the Program is not required to print an announcement.) 113204431Sraj 114204431SrajThese requirements apply to the modified work as a whole. If 115204431Srajidentifiable sections of that work are not derived from the Program, 116204431Srajand can be reasonably considered independent and separate works in 117204431Srajthemselves, then this License, and its terms, do not apply to those 118204431Srajsections when you distribute them as separate works. But when you 119204431Srajdistribute the same sections as part of a whole which is a work based 120204431Srajon the Program, the distribution of the whole must be on the terms of 121204431Srajthis License, whose permissions for other licensees extend to the 122204431Srajentire whole, and thus to each and every part regardless of who wrote it. 123204431Sraj 124204431SrajThus, it is not the intent of this section to claim rights or contest 125204431Srajyour rights to work written entirely by you; rather, the intent is to 126204431Srajexercise the right to control the distribution of derivative or 127204431Srajcollective works based on the Program. 128204431Sraj 129204431SrajIn addition, mere aggregation of another work not based on the Program 130204431Srajwith the Program (or with a work based on the Program) on a volume of 131204431Sraja storage or distribution medium does not bring the other work under 132204431Srajthe scope of this License. 133204431Sraj 134204431Sraj 3. You may copy and distribute the Program (or a work based on it, 135204431Srajunder Section 2) in object code or executable form under the terms of 136204431SrajSections 1 and 2 above provided that you also do one of the following: 137204431Sraj 138204431Sraj a) Accompany it with the complete corresponding machine-readable 139204431Sraj source code, which must be distributed under the terms of Sections 140204431Sraj 1 and 2 above on a medium customarily used for software interchange; or, 141204431Sraj 142204431Sraj b) Accompany it with a written offer, valid for at least three 143204431Sraj years, to give any third party, for a charge no more than your 144204431Sraj cost of physically performing source distribution, a complete 145204431Sraj machine-readable copy of the corresponding source code, to be 146204431Sraj distributed under the terms of Sections 1 and 2 above on a medium 147204431Sraj customarily used for software interchange; or, 148204431Sraj 149204431Sraj c) Accompany it with the information you received as to the offer 150204431Sraj to distribute corresponding source code. (This alternative is 151204431Sraj allowed only for noncommercial distribution and only if you 152204431Sraj received the program in object code or executable form with such 153204431Sraj an offer, in accord with Subsection b above.) 154204431Sraj 155204431SrajThe source code for a work means the preferred form of the work for 156204431Srajmaking modifications to it. For an executable work, complete source 157204431Srajcode means all the source code for all modules it contains, plus any 158204431Srajassociated interface definition files, plus the scripts used to 159204431Srajcontrol compilation and installation of the executable. However, as a 160204431Srajspecial exception, the source code distributed need not include 161204431Srajanything that is normally distributed (in either source or binary 162204431Srajform) with the major components (compiler, kernel, and so on) of the 163204431Srajoperating system on which the executable runs, unless that component 164204431Srajitself accompanies the executable. 165204431Sraj 166204431SrajIf distribution of executable or object code is made by offering 167204431Srajaccess to copy from a designated place, then offering equivalent 168204431Srajaccess to copy the source code from the same place counts as 169204431Srajdistribution of the source code, even though third parties are not 170204431Srajcompelled to copy the source along with the object code. 171204431Sraj 172204431Sraj 4. You may not copy, modify, sublicense, or distribute the Program 173204431Srajexcept as expressly provided under this License. Any attempt 174204431Srajotherwise to copy, modify, sublicense or distribute the Program is 175204431Srajvoid, and will automatically terminate your rights under this License. 176204431SrajHowever, parties who have received copies, or rights, from you under 177204431Srajthis License will not have their licenses terminated so long as such 178204431Srajparties remain in full compliance. 179204431Sraj 180204431Sraj 5. You are not required to accept this License, since you have not 181204431Srajsigned it. However, nothing else grants you permission to modify or 182204431Srajdistribute the Program or its derivative works. These actions are 183204431Srajprohibited by law if you do not accept this License. Therefore, by 184204431Srajmodifying or distributing the Program (or any work based on the 185204431SrajProgram), you indicate your acceptance of this License to do so, and 186204431Srajall its terms and conditions for copying, distributing or modifying 187204431Srajthe Program or works based on it. 188204431Sraj 189204431Sraj 6. Each time you redistribute the Program (or any work based on the 190204431SrajProgram), the recipient automatically receives a license from the 191204431Srajoriginal licensor to copy, distribute or modify the Program subject to 192204431Srajthese terms and conditions. You may not impose any further 193204431Srajrestrictions on the recipients' exercise of the rights granted herein. 194204431SrajYou are not responsible for enforcing compliance by third parties to 195204431Srajthis License. 196204431Sraj 197204431Sraj 7. If, as a consequence of a court judgment or allegation of patent 198204431Srajinfringement or for any other reason (not limited to patent issues), 199204431Srajconditions are imposed on you (whether by court order, agreement or 200204431Srajotherwise) that contradict the conditions of this License, they do not 201204431Srajexcuse you from the conditions of this License. If you cannot 202204431Srajdistribute so as to satisfy simultaneously your obligations under this 203204431SrajLicense and any other pertinent obligations, then as a consequence you 204204431Srajmay not distribute the Program at all. For example, if a patent 205204431Srajlicense would not permit royalty-free redistribution of the Program by 206204431Srajall those who receive copies directly or indirectly through you, then 207204431Srajthe only way you could satisfy both it and this License would be to 208204431Srajrefrain entirely from distribution of the Program. 209204431Sraj 210204431SrajIf any portion of this section is held invalid or unenforceable under 211204431Srajany particular circumstance, the balance of the section is intended to 212204431Srajapply and the section as a whole is intended to apply in other 213204431Srajcircumstances. 214204431Sraj 215204431SrajIt is not the purpose of this section to induce you to infringe any 216204431Srajpatents or other property right claims or to contest validity of any 217204431Srajsuch claims; this section has the sole purpose of protecting the 218204431Srajintegrity of the free software distribution system, which is 219204431Srajimplemented by public license practices. Many people have made 220204431Srajgenerous contributions to the wide range of software distributed 221204431Srajthrough that system in reliance on consistent application of that 222204431Srajsystem; it is up to the author/donor to decide if he or she is willing 223204431Srajto distribute software through any other system and a licensee cannot 224204431Srajimpose that choice. 225204431Sraj 226204431SrajThis section is intended to make thoroughly clear what is believed to 227204431Srajbe a consequence of the rest of this License. 228204431Sraj 229204431Sraj 8. If the distribution and/or use of the Program is restricted in 230204431Srajcertain countries either by patents or by copyrighted interfaces, the 231204431Srajoriginal copyright holder who places the Program under this License 232204431Srajmay add an explicit geographical distribution limitation excluding 233204431Srajthose countries, so that distribution is permitted only in or among 234204431Srajcountries not thus excluded. In such case, this License incorporates 235204431Srajthe limitation as if written in the body of this License. 236204431Sraj 237204431Sraj 9. The Free Software Foundation may publish revised and/or new versions 238204431Srajof the General Public License from time to time. Such new versions will 239204431Srajbe similar in spirit to the present version, but may differ in detail to 240204431Srajaddress new problems or concerns. 241204431Sraj 242204431SrajEach version is given a distinguishing version number. If the Program 243204431Srajspecifies a version number of this License which applies to it and "any 244204431Srajlater version", you have the option of following the terms and conditions 245204431Srajeither of that version or of any later version published by the Free 246204431SrajSoftware Foundation. If the Program does not specify a version number of 247204431Srajthis License, you may choose any version ever published by the Free Software 248204431SrajFoundation. 249204431Sraj 250204431Sraj 10. If you wish to incorporate parts of the Program into other free 251204431Srajprograms whose distribution conditions are different, write to the author 252204431Srajto ask for permission. For software which is copyrighted by the Free 253204431SrajSoftware Foundation, write to the Free Software Foundation; we sometimes 254204431Srajmake exceptions for this. Our decision will be guided by the two goals 255204431Srajof preserving the free status of all derivatives of our free software and 256204431Srajof promoting the sharing and reuse of software generally. 257204431Sraj 258204431Sraj NO WARRANTY 259204431Sraj 260204431Sraj 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261204431SrajFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262204431SrajOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263204431SrajPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264204431SrajOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265204431SrajMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266204431SrajTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267204431SrajPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268204431SrajREPAIR OR CORRECTION. 269204431Sraj 270204431Sraj 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271204431SrajWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272204431SrajREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273204431SrajINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274204431SrajOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275204431SrajTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276204431SrajYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277204431SrajPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278204431SrajPOSSIBILITY OF SUCH DAMAGES. 279204431Sraj 280204431Sraj END OF TERMS AND CONDITIONS 281204431Sraj 282204431Sraj How to Apply These Terms to Your New Programs 283204431Sraj 284204431Sraj If you develop a new program, and you want it to be of the greatest 285204431Srajpossible use to the public, the best way to achieve this is to make it 286204431Srajfree software which everyone can redistribute and change under these terms. 287204431Sraj 288204431Sraj To do so, attach the following notices to the program. It is safest 289204431Srajto attach them to the start of each source file to most effectively 290204431Srajconvey the exclusion of warranty; and each file should have at least 291204431Srajthe "copyright" line and a pointer to where the full notice is found. 292204431Sraj 293204431Sraj <one line to give the program's name and a brief idea of what it does.> 294204431Sraj Copyright (C) <year> <name of author> 295204431Sraj 296204431Sraj This program is free software; you can redistribute it and/or modify 297204431Sraj it under the terms of the GNU General Public License as published by 298204431Sraj the Free Software Foundation; either version 2 of the License, or 299204431Sraj (at your option) any later version. 300204431Sraj 301204431Sraj This program is distributed in the hope that it will be useful, 302204431Sraj but WITHOUT ANY WARRANTY; without even the implied warranty of 303204431Sraj MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304204431Sraj GNU General Public License for more details. 305204431Sraj 306204431Sraj You should have received a copy of the GNU General Public License 307204431Sraj along with this program; if not, write to the Free Software 308204431Sraj Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 309204431Sraj 310204431Sraj 311204431SrajAlso add information on how to contact you by electronic and paper mail. 312204431Sraj 313204431SrajIf the program is interactive, make it output a short notice like this 314204431Srajwhen it starts in an interactive mode: 315204431Sraj 316204431Sraj Gnomovision version 69, Copyright (C) year name of author 317204431Sraj Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 318204431Sraj This is free software, and you are welcome to redistribute it 319204431Sraj under certain conditions; type `show c' for details. 320204431Sraj 321204431SrajThe hypothetical commands `show w' and `show c' should show the appropriate 322204431Srajparts of the General Public License. Of course, the commands you use may 323204431Srajbe called something other than `show w' and `show c'; they could even be 324204431Srajmouse-clicks or menu items--whatever suits your program. 325204431Sraj 326204431SrajYou should also get your employer (if you work as a programmer) or your 327204431Srajschool, if any, to sign a "copyright disclaimer" for the program, if 328204431Srajnecessary. Here is a sample; alter the names: 329204431Sraj 330204431Sraj Yoyodyne, Inc., hereby disclaims all copyright interest in the program 331204431Sraj `Gnomovision' (which makes passes at compilers) written by James Hacker. 332204431Sraj 333204431Sraj <signature of Ty Coon>, 1 April 1989 334204431Sraj Ty Coon, President of Vice 335204431Sraj 336204431SrajThis General Public License does not permit incorporating your program into 337204431Srajproprietary programs. If your program is a subroutine library, you may 338204431Srajconsider it more useful to permit linking proprietary applications with the 339204431Srajlibrary. If this is what you want to do, use the GNU Library General 340204431SrajPublic License instead of this License. 341