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