161Snate GNU GENERAL PUBLIC LICENSE 261Snate Version 2, June 1991 361Snate 461Snate Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5131554Stjr 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 661Snate Everyone is permitted to copy and distribute verbatim copies 761Snate of this license document, but changing it is not allowed. 861Snate 961Snate Preamble 1061Snate 1161Snate The licenses for most software are designed to take away your 1261Snatefreedom to share and change it. By contrast, the GNU General Public 1361SnateLicense is intended to guarantee your freedom to share and change free 1461Snatesoftware--to make sure the software is free for all its users. This 1561SnateGeneral Public License applies to most of the Free Software 1661SnateFoundation's software and to any other program whose authors commit to 1761Snateusing it. (Some other Free Software Foundation software is covered by 1861Snatethe GNU Library General Public License instead.) You can apply it to 1961Snateyour programs, too. 2061Snate 2161Snate When we speak of free software, we are referring to freedom, not 2261Snateprice. Our General Public Licenses are designed to make sure that you 2361Snatehave the freedom to distribute copies of free software (and charge for 2461Snatethis service if you wish), that you receive source code or can get it 2561Snateif you want it, that you can change the software or use pieces of it 2661Snatein new free programs; and that you know you can do these things. 2761Snate 2861Snate To protect your rights, we need to make restrictions that forbid 2961Snateanyone to deny you these rights or to ask you to surrender the rights. 3061SnateThese restrictions translate to certain responsibilities for you if you 3161Snatedistribute copies of the software, or if you modify it. 3261Snate 3361Snate For example, if you distribute copies of such a program, whether 3461Snategratis or for a fee, you must give the recipients all the rights that 3561Snateyou have. You must make sure that they, too, receive or can get the 3661Snatesource code. And you must show them these terms so they know their 3761Snaterights. 3861Snate 3961Snate We protect your rights with two steps: (1) copyright the software, and 4061Snate(2) offer you this license which gives you legal permission to copy, 4161Snatedistribute and/or modify the software. 4261Snate 4361Snate Also, for each author's protection and ours, we want to make certain 4461Snatethat everyone understands that there is no warranty for this free 4561Snatesoftware. If the software is modified by someone else and passed on, we 4661Snatewant its recipients to know that what they have is not the original, so 4761Snatethat any problems introduced by others will not reflect on the original 4861Snateauthors' reputations. 4961Snate 5061Snate Finally, any free program is threatened constantly by software 5161Snatepatents. We wish to avoid the danger that redistributors of a free 5261Snateprogram will individually obtain patent licenses, in effect making the 5361Snateprogram proprietary. To prevent this, we have made it clear that any 5461Snatepatent must be licensed for everyone's free use or not licensed at all. 5561Snate 5661Snate The precise terms and conditions for copying, distribution and 5761Snatemodification follow. 5861Snate 5961Snate GNU GENERAL PUBLIC LICENSE 6061Snate TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 6161Snate 6261Snate 0. This License applies to any program or other work which contains 6361Snatea notice placed by the copyright holder saying it may be distributed 6461Snateunder the terms of this General Public License. The "Program", below, 6561Snaterefers to any such program or work, and a "work based on the Program" 6661Snatemeans either the Program or any derivative work under copyright law: 6761Snatethat is to say, a work containing the Program or a portion of it, 6861Snateeither verbatim or with modifications and/or translated into another 6961Snatelanguage. (Hereinafter, translation is included without limitation in 7061Snatethe term "modification".) Each licensee is addressed as "you". 7161Snate 7261SnateActivities other than copying, distribution and modification are not 7361Snatecovered by this License; they are outside its scope. The act of 7461Snaterunning the Program is not restricted, and the output from the Program 7561Snateis covered only if its contents constitute a work based on the 7661SnateProgram (independent of having been made by running the Program). 7761SnateWhether that is true depends on what the Program does. 7861Snate 7961Snate 1. You may copy and distribute verbatim copies of the Program's 8061Snatesource code as you receive it, in any medium, provided that you 8161Snateconspicuously and appropriately publish on each copy an appropriate 8261Snatecopyright notice and disclaimer of warranty; keep intact all the 8361Snatenotices that refer to this License and to the absence of any warranty; 8461Snateand give any other recipients of the Program a copy of this License 8561Snatealong with the Program. 8661Snate 8761SnateYou may charge a fee for the physical act of transferring a copy, and 8861Snateyou may at your option offer warranty protection in exchange for a fee. 8961Snate 9061Snate 2. You may modify your copy or copies of the Program or any portion 9161Snateof it, thus forming a work based on the Program, and copy and 9261Snatedistribute such modifications or work under the terms of Section 1 9361Snateabove, provided that you also meet all of these conditions: 9461Snate 9561Snate a) You must cause the modified files to carry prominent notices 9661Snate stating that you changed the files and the date of any change. 9761Snate 9861Snate b) You must cause any work that you distribute or publish, that in 9961Snate whole or in part contains or is derived from the Program or any 10061Snate part thereof, to be licensed as a whole at no charge to all third 10161Snate parties under the terms of this License. 10261Snate 10361Snate c) If the modified program normally reads commands interactively 10461Snate when run, you must cause it, when started running for such 10561Snate interactive use in the most ordinary way, to print or display an 10661Snate announcement including an appropriate copyright notice and a 10761Snate notice that there is no warranty (or else, saying that you provide 10861Snate a warranty) and that users may redistribute the program under 10961Snate these conditions, and telling the user how to view a copy of this 11061Snate License. (Exception: if the Program itself is interactive but 11161Snate does not normally print such an announcement, your work based on 11261Snate the Program is not required to print an announcement.) 11361Snate 11461SnateThese requirements apply to the modified work as a whole. If 11561Snateidentifiable sections of that work are not derived from the Program, 11661Snateand can be reasonably considered independent and separate works in 11761Snatethemselves, then this License, and its terms, do not apply to those 11861Snatesections when you distribute them as separate works. But when you 11961Snatedistribute the same sections as part of a whole which is a work based 12061Snateon the Program, the distribution of the whole must be on the terms of 12161Snatethis License, whose permissions for other licensees extend to the 12261Snateentire whole, and thus to each and every part regardless of who wrote it. 12361Snate 12461SnateThus, it is not the intent of this section to claim rights or contest 12561Snateyour rights to work written entirely by you; rather, the intent is to 12661Snateexercise the right to control the distribution of derivative or 12761Snatecollective works based on the Program. 12861Snate 12961SnateIn addition, mere aggregation of another work not based on the Program 13061Snatewith the Program (or with a work based on the Program) on a volume of 13161Snatea storage or distribution medium does not bring the other work under 13261Snatethe scope of this License. 13361Snate 13461Snate 3. You may copy and distribute the Program (or a work based on it, 13561Snateunder Section 2) in object code or executable form under the terms of 13661SnateSections 1 and 2 above provided that you also do one of the following: 13761Snate 13861Snate a) Accompany it with the complete corresponding machine-readable 13961Snate source code, which must be distributed under the terms of Sections 14061Snate 1 and 2 above on a medium customarily used for software interchange; or, 14161Snate 14261Snate b) Accompany it with a written offer, valid for at least three 14361Snate years, to give any third party, for a charge no more than your 14461Snate cost of physically performing source distribution, a complete 14561Snate machine-readable copy of the corresponding source code, to be 14661Snate distributed under the terms of Sections 1 and 2 above on a medium 14761Snate customarily used for software interchange; or, 14861Snate 14961Snate c) Accompany it with the information you received as to the offer 15061Snate to distribute corresponding source code. (This alternative is 15161Snate allowed only for noncommercial distribution and only if you 15261Snate received the program in object code or executable form with such 15361Snate an offer, in accord with Subsection b above.) 15461Snate 15561SnateThe source code for a work means the preferred form of the work for 15661Snatemaking modifications to it. For an executable work, complete source 15761Snatecode means all the source code for all modules it contains, plus any 15861Snateassociated interface definition files, plus the scripts used to 15961Snatecontrol compilation and installation of the executable. However, as a 16061Snatespecial exception, the source code distributed need not include 16161Snateanything that is normally distributed (in either source or binary 16261Snateform) with the major components (compiler, kernel, and so on) of the 16361Snateoperating system on which the executable runs, unless that component 16461Snateitself accompanies the executable. 16561Snate 16661SnateIf distribution of executable or object code is made by offering 16761Snateaccess to copy from a designated place, then offering equivalent 16861Snateaccess to copy the source code from the same place counts as 16961Snatedistribution of the source code, even though third parties are not 17061Snatecompelled to copy the source along with the object code. 17161Snate 17261Snate 4. You may not copy, modify, sublicense, or distribute the Program 17361Snateexcept as expressly provided under this License. Any attempt 17461Snateotherwise to copy, modify, sublicense or distribute the Program is 17561Snatevoid, and will automatically terminate your rights under this License. 17661SnateHowever, parties who have received copies, or rights, from you under 17761Snatethis License will not have their licenses terminated so long as such 17861Snateparties remain in full compliance. 17961Snate 18061Snate 5. You are not required to accept this License, since you have not 18161Snatesigned it. However, nothing else grants you permission to modify or 18261Snatedistribute the Program or its derivative works. These actions are 18361Snateprohibited by law if you do not accept this License. Therefore, by 18461Snatemodifying or distributing the Program (or any work based on the 18561SnateProgram), you indicate your acceptance of this License to do so, and 18661Snateall its terms and conditions for copying, distributing or modifying 18761Snatethe Program or works based on it. 18861Snate 18961Snate 6. Each time you redistribute the Program (or any work based on the 19061SnateProgram), the recipient automatically receives a license from the 19161Snateoriginal licensor to copy, distribute or modify the Program subject to 19261Snatethese terms and conditions. You may not impose any further 19361Snaterestrictions on the recipients' exercise of the rights granted herein. 19461SnateYou are not responsible for enforcing compliance by third parties to 19561Snatethis License. 19661Snate 19761Snate 7. If, as a consequence of a court judgment or allegation of patent 19861Snateinfringement or for any other reason (not limited to patent issues), 19961Snateconditions are imposed on you (whether by court order, agreement or 20061Snateotherwise) that contradict the conditions of this License, they do not 20161Snateexcuse you from the conditions of this License. If you cannot 20261Snatedistribute so as to satisfy simultaneously your obligations under this 20361SnateLicense and any other pertinent obligations, then as a consequence you 20461Snatemay not distribute the Program at all. For example, if a patent 20561Snatelicense would not permit royalty-free redistribution of the Program by 20661Snateall those who receive copies directly or indirectly through you, then 20761Snatethe only way you could satisfy both it and this License would be to 20861Snaterefrain entirely from distribution of the Program. 20961Snate 21061SnateIf any portion of this section is held invalid or unenforceable under 21161Snateany particular circumstance, the balance of the section is intended to 21261Snateapply and the section as a whole is intended to apply in other 21361Snatecircumstances. 21461Snate 21561SnateIt is not the purpose of this section to induce you to infringe any 21661Snatepatents or other property right claims or to contest validity of any 21761Snatesuch claims; this section has the sole purpose of protecting the 21861Snateintegrity of the free software distribution system, which is 21961Snateimplemented by public license practices. Many people have made 22061Snategenerous contributions to the wide range of software distributed 22161Snatethrough that system in reliance on consistent application of that 22261Snatesystem; it is up to the author/donor to decide if he or she is willing 22361Snateto distribute software through any other system and a licensee cannot 22461Snateimpose that choice. 22561Snate 22661SnateThis section is intended to make thoroughly clear what is believed to 22761Snatebe a consequence of the rest of this License. 22861Snate 22961Snate 8. If the distribution and/or use of the Program is restricted in 23061Snatecertain countries either by patents or by copyrighted interfaces, the 23161Snateoriginal copyright holder who places the Program under this License 23261Snatemay add an explicit geographical distribution limitation excluding 23361Snatethose countries, so that distribution is permitted only in or among 23461Snatecountries not thus excluded. In such case, this License incorporates 23561Snatethe limitation as if written in the body of this License. 23661Snate 23761Snate 9. The Free Software Foundation may publish revised and/or new versions 23861Snateof the General Public License from time to time. Such new versions will 23961Snatebe similar in spirit to the present version, but may differ in detail to 24061Snateaddress new problems or concerns. 24161Snate 24261SnateEach version is given a distinguishing version number. If the Program 24361Snatespecifies a version number of this License which applies to it and "any 24461Snatelater version", you have the option of following the terms and conditions 24561Snateeither of that version or of any later version published by the Free 24661SnateSoftware Foundation. If the Program does not specify a version number of 24761Snatethis License, you may choose any version ever published by the Free Software 24861SnateFoundation. 24961Snate 25061Snate 10. If you wish to incorporate parts of the Program into other free 25161Snateprograms whose distribution conditions are different, write to the author 25261Snateto ask for permission. For software which is copyrighted by the Free 25361SnateSoftware Foundation, write to the Free Software Foundation; we sometimes 25461Snatemake exceptions for this. Our decision will be guided by the two goals 25561Snateof preserving the free status of all derivatives of our free software and 25661Snateof promoting the sharing and reuse of software generally. 25761Snate 25861Snate NO WARRANTY 25961Snate 26061Snate 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 26161SnateFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 26261SnateOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 26361SnatePROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 26461SnateOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 26561SnateMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 26661SnateTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 26761SnatePROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 26861SnateREPAIR OR CORRECTION. 26961Snate 27061Snate 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 27161SnateWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 27261SnateREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 27361SnateINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 27461SnateOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 27561SnateTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 27661SnateYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 27761SnatePROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 27861SnatePOSSIBILITY OF SUCH DAMAGES. 27961Snate 28061Snate END OF TERMS AND CONDITIONS 28161Snate 28253574Sobrien How to Apply These Terms to Your New Programs 28361Snate 28461Snate If you develop a new program, and you want it to be of the greatest 28561Snatepossible use to the public, the best way to achieve this is to make it 28661Snatefree software which everyone can redistribute and change under these terms. 28761Snate 28861Snate To do so, attach the following notices to the program. It is safest 28961Snateto attach them to the start of each source file to most effectively 29061Snateconvey the exclusion of warranty; and each file should have at least 29161Snatethe "copyright" line and a pointer to where the full notice is found. 29261Snate 29361Snate <one line to give the program's name and a brief idea of what it does.> 294131554Stjr Copyright (C) 19yy <name of author> 29561Snate 29661Snate This program is free software; you can redistribute it and/or modify 29761Snate it under the terms of the GNU General Public License as published by 29861Snate the Free Software Foundation; either version 2 of the License, or 29961Snate (at your option) any later version. 30061Snate 30161Snate This program is distributed in the hope that it will be useful, 30261Snate but WITHOUT ANY WARRANTY; without even the implied warranty of 30361Snate MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 30461Snate GNU General Public License for more details. 30561Snate 30661Snate You should have received a copy of the GNU General Public License 30761Snate along with this program; if not, write to the Free Software 30853574Sobrien Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 30961Snate 31053574Sobrien 31161SnateAlso add information on how to contact you by electronic and paper mail. 31261Snate 31361SnateIf the program is interactive, make it output a short notice like this 31461Snatewhen it starts in an interactive mode: 31561Snate 316131554Stjr Gnomovision version 69, Copyright (C) 19yy name of author 31761Snate Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 31861Snate This is free software, and you are welcome to redistribute it 31961Snate under certain conditions; type `show c' for details. 32061Snate 32161SnateThe hypothetical commands `show w' and `show c' should show the appropriate 32261Snateparts of the General Public License. Of course, the commands you use may 32361Snatebe called something other than `show w' and `show c'; they could even be 32461Snatemouse-clicks or menu items--whatever suits your program. 32561Snate 32661SnateYou should also get your employer (if you work as a programmer) or your 32761Snateschool, if any, to sign a "copyright disclaimer" for the program, if 32861Snatenecessary. Here is a sample; alter the names: 32961Snate 33061Snate Yoyodyne, Inc., hereby disclaims all copyright interest in the program 33161Snate `Gnomovision' (which makes passes at compilers) written by James Hacker. 33261Snate 33361Snate <signature of Ty Coon>, 1 April 1989 33461Snate Ty Coon, President of Vice 33561Snate 33661SnateThis General Public License does not permit incorporating your program into 33761Snateproprietary programs. If your program is a subroutine library, you may 33861Snateconsider it more useful to permit linking proprietary applications with the 33961Snatelibrary. If this is what you want to do, use the GNU Library General 34061SnatePublic License instead of this License. 341