tomh@421: GNU GENERAL PUBLIC LICENSE tomh@421: Version 2, June 1991 tomh@421: tomh@421: Copyright (C) 1989, 1991 Free Software Foundation, Inc., tomh@421: 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA tomh@421: Everyone is permitted to copy and distribute verbatim copies tomh@421: of this license document, but changing it is not allowed. tomh@421: tomh@421: Preamble tomh@421: tomh@421: The licenses for most software are designed to take away your tomh@421: freedom to share and change it. By contrast, the GNU General Public tomh@421: License is intended to guarantee your freedom to share and change free tomh@421: software--to make sure the software is free for all its users. This tomh@421: General Public License applies to most of the Free Software tomh@421: Foundation's software and to any other program whose authors commit to tomh@421: using it. (Some other Free Software Foundation software is covered by tomh@421: the GNU Lesser General Public License instead.) You can apply it to tomh@421: your programs, too. tomh@421: tomh@421: When we speak of free software, we are referring to freedom, not tomh@421: price. Our General Public Licenses are designed to make sure that you tomh@421: have the freedom to distribute copies of free software (and charge for tomh@421: this service if you wish), that you receive source code or can get it tomh@421: if you want it, that you can change the software or use pieces of it tomh@421: in new free programs; and that you know you can do these things. tomh@421: tomh@421: To protect your rights, we need to make restrictions that forbid tomh@421: anyone to deny you these rights or to ask you to surrender the rights. tomh@421: These restrictions translate to certain responsibilities for you if you tomh@421: distribute copies of the software, or if you modify it. tomh@421: tomh@421: For example, if you distribute copies of such a program, whether tomh@421: gratis or for a fee, you must give the recipients all the rights that tomh@421: you have. You must make sure that they, too, receive or can get the tomh@421: source code. And you must show them these terms so they know their tomh@421: rights. tomh@421: tomh@421: We protect your rights with two steps: (1) copyright the software, and tomh@421: (2) offer you this license which gives you legal permission to copy, tomh@421: distribute and/or modify the software. tomh@421: tomh@421: Also, for each author's protection and ours, we want to make certain tomh@421: that everyone understands that there is no warranty for this free tomh@421: software. If the software is modified by someone else and passed on, we tomh@421: want its recipients to know that what they have is not the original, so tomh@421: that any problems introduced by others will not reflect on the original tomh@421: authors' reputations. tomh@421: tomh@421: Finally, any free program is threatened constantly by software tomh@421: patents. We wish to avoid the danger that redistributors of a free tomh@421: program will individually obtain patent licenses, in effect making the tomh@421: program proprietary. To prevent this, we have made it clear that any tomh@421: patent must be licensed for everyone's free use or not licensed at all. tomh@421: tomh@421: The precise terms and conditions for copying, distribution and tomh@421: modification follow. tomh@421: tomh@421: GNU GENERAL PUBLIC LICENSE tomh@421: TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION tomh@421: tomh@421: 0. This License applies to any program or other work which contains tomh@421: a notice placed by the copyright holder saying it may be distributed tomh@421: under the terms of this General Public License. The "Program", below, tomh@421: refers to any such program or work, and a "work based on the Program" tomh@421: means either the Program or any derivative work under copyright law: tomh@421: that is to say, a work containing the Program or a portion of it, tomh@421: either verbatim or with modifications and/or translated into another tomh@421: language. (Hereinafter, translation is included without limitation in tomh@421: the term "modification".) Each licensee is addressed as "you". tomh@421: tomh@421: Activities other than copying, distribution and modification are not tomh@421: covered by this License; they are outside its scope. The act of tomh@421: running the Program is not restricted, and the output from the Program tomh@421: is covered only if its contents constitute a work based on the tomh@421: Program (independent of having been made by running the Program). tomh@421: Whether that is true depends on what the Program does. tomh@421: tomh@421: 1. You may copy and distribute verbatim copies of the Program's tomh@421: source code as you receive it, in any medium, provided that you tomh@421: conspicuously and appropriately publish on each copy an appropriate tomh@421: copyright notice and disclaimer of warranty; keep intact all the tomh@421: notices that refer to this License and to the absence of any warranty; tomh@421: and give any other recipients of the Program a copy of this License tomh@421: along with the Program. tomh@421: tomh@421: You may charge a fee for the physical act of transferring a copy, and tomh@421: you may at your option offer warranty protection in exchange for a fee. tomh@421: tomh@421: 2. You may modify your copy or copies of the Program or any portion tomh@421: of it, thus forming a work based on the Program, and copy and tomh@421: distribute such modifications or work under the terms of Section 1 tomh@421: above, provided that you also meet all of these conditions: tomh@421: tomh@421: a) You must cause the modified files to carry prominent notices tomh@421: stating that you changed the files and the date of any change. tomh@421: tomh@421: b) You must cause any work that you distribute or publish, that in tomh@421: whole or in part contains or is derived from the Program or any tomh@421: part thereof, to be licensed as a whole at no charge to all third tomh@421: parties under the terms of this License. tomh@421: tomh@421: c) If the modified program normally reads commands interactively tomh@421: when run, you must cause it, when started running for such tomh@421: interactive use in the most ordinary way, to print or display an tomh@421: announcement including an appropriate copyright notice and a tomh@421: notice that there is no warranty (or else, saying that you provide tomh@421: a warranty) and that users may redistribute the program under tomh@421: these conditions, and telling the user how to view a copy of this tomh@421: License. (Exception: if the Program itself is interactive but tomh@421: does not normally print such an announcement, your work based on tomh@421: the Program is not required to print an announcement.) tomh@421: tomh@421: These requirements apply to the modified work as a whole. If tomh@421: identifiable sections of that work are not derived from the Program, tomh@421: and can be reasonably considered independent and separate works in tomh@421: themselves, then this License, and its terms, do not apply to those tomh@421: sections when you distribute them as separate works. But when you tomh@421: distribute the same sections as part of a whole which is a work based tomh@421: on the Program, the distribution of the whole must be on the terms of tomh@421: this License, whose permissions for other licensees extend to the tomh@421: entire whole, and thus to each and every part regardless of who wrote it. tomh@421: tomh@421: Thus, it is not the intent of this section to claim rights or contest tomh@421: your rights to work written entirely by you; rather, the intent is to tomh@421: exercise the right to control the distribution of derivative or tomh@421: collective works based on the Program. tomh@421: tomh@421: In addition, mere aggregation of another work not based on the Program tomh@421: with the Program (or with a work based on the Program) on a volume of tomh@421: a storage or distribution medium does not bring the other work under tomh@421: the scope of this License. tomh@421: tomh@421: 3. You may copy and distribute the Program (or a work based on it, tomh@421: under Section 2) in object code or executable form under the terms of tomh@421: Sections 1 and 2 above provided that you also do one of the following: tomh@421: tomh@421: a) Accompany it with the complete corresponding machine-readable tomh@421: source code, which must be distributed under the terms of Sections tomh@421: 1 and 2 above on a medium customarily used for software interchange; or, tomh@421: tomh@421: b) Accompany it with a written offer, valid for at least three tomh@421: years, to give any third party, for a charge no more than your tomh@421: cost of physically performing source distribution, a complete tomh@421: machine-readable copy of the corresponding source code, to be tomh@421: distributed under the terms of Sections 1 and 2 above on a medium tomh@421: customarily used for software interchange; or, tomh@421: tomh@421: c) Accompany it with the information you received as to the offer tomh@421: to distribute corresponding source code. (This alternative is tomh@421: allowed only for noncommercial distribution and only if you tomh@421: received the program in object code or executable form with such tomh@421: an offer, in accord with Subsection b above.) tomh@421: tomh@421: The source code for a work means the preferred form of the work for tomh@421: making modifications to it. For an executable work, complete source tomh@421: code means all the source code for all modules it contains, plus any tomh@421: associated interface definition files, plus the scripts used to tomh@421: control compilation and installation of the executable. However, as a tomh@421: special exception, the source code distributed need not include tomh@421: anything that is normally distributed (in either source or binary tomh@421: form) with the major components (compiler, kernel, and so on) of the tomh@421: operating system on which the executable runs, unless that component tomh@421: itself accompanies the executable. tomh@421: tomh@421: If distribution of executable or object code is made by offering tomh@421: access to copy from a designated place, then offering equivalent tomh@421: access to copy the source code from the same place counts as tomh@421: distribution of the source code, even though third parties are not tomh@421: compelled to copy the source along with the object code. tomh@421: tomh@421: 4. You may not copy, modify, sublicense, or distribute the Program tomh@421: except as expressly provided under this License. Any attempt tomh@421: otherwise to copy, modify, sublicense or distribute the Program is tomh@421: void, and will automatically terminate your rights under this License. tomh@421: However, parties who have received copies, or rights, from you under tomh@421: this License will not have their licenses terminated so long as such tomh@421: parties remain in full compliance. tomh@421: tomh@421: 5. You are not required to accept this License, since you have not tomh@421: signed it. However, nothing else grants you permission to modify or tomh@421: distribute the Program or its derivative works. These actions are tomh@421: prohibited by law if you do not accept this License. Therefore, by tomh@421: modifying or distributing the Program (or any work based on the tomh@421: Program), you indicate your acceptance of this License to do so, and tomh@421: all its terms and conditions for copying, distributing or modifying tomh@421: the Program or works based on it. tomh@421: tomh@421: 6. Each time you redistribute the Program (or any work based on the tomh@421: Program), the recipient automatically receives a license from the tomh@421: original licensor to copy, distribute or modify the Program subject to tomh@421: these terms and conditions. You may not impose any further tomh@421: restrictions on the recipients' exercise of the rights granted herein. tomh@421: You are not responsible for enforcing compliance by third parties to tomh@421: this License. tomh@421: tomh@421: 7. If, as a consequence of a court judgment or allegation of patent tomh@421: infringement or for any other reason (not limited to patent issues), tomh@421: conditions are imposed on you (whether by court order, agreement or tomh@421: otherwise) that contradict the conditions of this License, they do not tomh@421: excuse you from the conditions of this License. If you cannot tomh@421: distribute so as to satisfy simultaneously your obligations under this tomh@421: License and any other pertinent obligations, then as a consequence you tomh@421: may not distribute the Program at all. For example, if a patent tomh@421: license would not permit royalty-free redistribution of the Program by tomh@421: all those who receive copies directly or indirectly through you, then tomh@421: the only way you could satisfy both it and this License would be to tomh@421: refrain entirely from distribution of the Program. tomh@421: tomh@421: If any portion of this section is held invalid or unenforceable under tomh@421: any particular circumstance, the balance of the section is intended to tomh@421: apply and the section as a whole is intended to apply in other tomh@421: circumstances. tomh@421: tomh@421: It is not the purpose of this section to induce you to infringe any tomh@421: patents or other property right claims or to contest validity of any tomh@421: such claims; this section has the sole purpose of protecting the tomh@421: integrity of the free software distribution system, which is tomh@421: implemented by public license practices. Many people have made tomh@421: generous contributions to the wide range of software distributed tomh@421: through that system in reliance on consistent application of that tomh@421: system; it is up to the author/donor to decide if he or she is willing tomh@421: to distribute software through any other system and a licensee cannot tomh@421: impose that choice. tomh@421: tomh@421: This section is intended to make thoroughly clear what is believed to tomh@421: be a consequence of the rest of this License. tomh@421: tomh@421: 8. If the distribution and/or use of the Program is restricted in tomh@421: certain countries either by patents or by copyrighted interfaces, the tomh@421: original copyright holder who places the Program under this License tomh@421: may add an explicit geographical distribution limitation excluding tomh@421: those countries, so that distribution is permitted only in or among tomh@421: countries not thus excluded. In such case, this License incorporates tomh@421: the limitation as if written in the body of this License. tomh@421: tomh@421: 9. The Free Software Foundation may publish revised and/or new versions tomh@421: of the General Public License from time to time. Such new versions will tomh@421: be similar in spirit to the present version, but may differ in detail to tomh@421: address new problems or concerns. tomh@421: tomh@421: Each version is given a distinguishing version number. If the Program tomh@421: specifies a version number of this License which applies to it and "any tomh@421: later version", you have the option of following the terms and conditions tomh@421: either of that version or of any later version published by the Free tomh@421: Software Foundation. If the Program does not specify a version number of tomh@421: this License, you may choose any version ever published by the Free Software tomh@421: Foundation. tomh@421: tomh@421: 10. If you wish to incorporate parts of the Program into other free tomh@421: programs whose distribution conditions are different, write to the author tomh@421: to ask for permission. For software which is copyrighted by the Free tomh@421: Software Foundation, write to the Free Software Foundation; we sometimes tomh@421: make exceptions for this. Our decision will be guided by the two goals tomh@421: of preserving the free status of all derivatives of our free software and tomh@421: of promoting the sharing and reuse of software generally. tomh@421: tomh@421: NO WARRANTY tomh@421: tomh@421: 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY tomh@421: FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN tomh@421: OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES tomh@421: PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED tomh@421: OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF tomh@421: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS tomh@421: TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE tomh@421: PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, tomh@421: REPAIR OR CORRECTION. tomh@421: tomh@421: 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING tomh@421: WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR tomh@421: REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, tomh@421: INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING tomh@421: OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED tomh@421: TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY tomh@421: YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER tomh@421: PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE tomh@421: POSSIBILITY OF SUCH DAMAGES. tomh@421: tomh@421: END OF TERMS AND CONDITIONS tomh@421: tomh@421: How to Apply These Terms to Your New Programs tomh@421: tomh@421: If you develop a new program, and you want it to be of the greatest tomh@421: possible use to the public, the best way to achieve this is to make it tomh@421: free software which everyone can redistribute and change under these terms. tomh@421: tomh@421: To do so, attach the following notices to the program. It is safest tomh@421: to attach them to the start of each source file to most effectively tomh@421: convey the exclusion of warranty; and each file should have at least tomh@421: the "copyright" line and a pointer to where the full notice is found. tomh@421: tomh@421: tomh@421: Copyright (C) tomh@421: tomh@421: This program is free software; you can redistribute it and/or modify tomh@421: it under the terms of the GNU General Public License as published by tomh@421: the Free Software Foundation; either version 2 of the License, or tomh@421: (at your option) any later version. tomh@421: tomh@421: This program is distributed in the hope that it will be useful, tomh@421: but WITHOUT ANY WARRANTY; without even the implied warranty of tomh@421: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the tomh@421: GNU General Public License for more details. tomh@421: tomh@421: You should have received a copy of the GNU General Public License along tomh@421: with this program; if not, write to the Free Software Foundation, Inc., tomh@421: 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. tomh@421: tomh@421: Also add information on how to contact you by electronic and paper mail. tomh@421: tomh@421: If the program is interactive, make it output a short notice like this tomh@421: when it starts in an interactive mode: tomh@421: tomh@421: Gnomovision version 69, Copyright (C) year name of author tomh@421: Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. tomh@421: This is free software, and you are welcome to redistribute it tomh@421: under certain conditions; type `show c' for details. tomh@421: tomh@421: The hypothetical commands `show w' and `show c' should show the appropriate tomh@421: parts of the General Public License. Of course, the commands you use may tomh@421: be called something other than `show w' and `show c'; they could even be tomh@421: mouse-clicks or menu items--whatever suits your program. tomh@421: tomh@421: You should also get your employer (if you work as a programmer) or your tomh@421: school, if any, to sign a "copyright disclaimer" for the program, if tomh@421: necessary. Here is a sample; alter the names: tomh@421: tomh@421: Yoyodyne, Inc., hereby disclaims all copyright interest in the program tomh@421: `Gnomovision' (which makes passes at compilers) written by James Hacker. tomh@421: tomh@421: , 1 April 1989 tomh@421: Ty Coon, President of Vice tomh@421: tomh@421: This General Public License does not permit incorporating your program into tomh@421: proprietary programs. If your program is a subroutine library, you may tomh@421: consider it more useful to permit linking proprietary applications with the tomh@421: library. If this is what you want to do, use the GNU Lesser General tomh@421: Public License instead of this License.