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