xref: /netbsd-src/external/gpl2/diffutils/dist/COPYING (revision 75f6d617e282811cb173c2ccfbf5df0dd71f7045)
1*75f6d617Schristos		    GNU GENERAL PUBLIC LICENSE
2*75f6d617Schristos		       Version 2, June 1991
3*75f6d617Schristos
4*75f6d617Schristos Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5*75f6d617Schristos     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
6*75f6d617Schristos Everyone is permitted to copy and distribute verbatim copies
7*75f6d617Schristos of this license document, but changing it is not allowed.
8*75f6d617Schristos
9*75f6d617Schristos			    Preamble
10*75f6d617Schristos
11*75f6d617Schristos  The licenses for most software are designed to take away your
12*75f6d617Schristosfreedom to share and change it.  By contrast, the GNU General Public
13*75f6d617SchristosLicense is intended to guarantee your freedom to share and change free
14*75f6d617Schristossoftware--to make sure the software is free for all its users.  This
15*75f6d617SchristosGeneral Public License applies to most of the Free Software
16*75f6d617SchristosFoundation's software and to any other program whose authors commit to
17*75f6d617Schristosusing it.  (Some other Free Software Foundation software is covered by
18*75f6d617Schristosthe GNU Library General Public License instead.)  You can apply it to
19*75f6d617Schristosyour programs, too.
20*75f6d617Schristos
21*75f6d617Schristos  When we speak of free software, we are referring to freedom, not
22*75f6d617Schristosprice.  Our General Public Licenses are designed to make sure that you
23*75f6d617Schristoshave the freedom to distribute copies of free software (and charge for
24*75f6d617Schristosthis service if you wish), that you receive source code or can get it
25*75f6d617Schristosif you want it, that you can change the software or use pieces of it
26*75f6d617Schristosin new free programs; and that you know you can do these things.
27*75f6d617Schristos
28*75f6d617Schristos  To protect your rights, we need to make restrictions that forbid
29*75f6d617Schristosanyone to deny you these rights or to ask you to surrender the rights.
30*75f6d617SchristosThese restrictions translate to certain responsibilities for you if you
31*75f6d617Schristosdistribute copies of the software, or if you modify it.
32*75f6d617Schristos
33*75f6d617Schristos  For example, if you distribute copies of such a program, whether
34*75f6d617Schristosgratis or for a fee, you must give the recipients all the rights that
35*75f6d617Schristosyou have.  You must make sure that they, too, receive or can get the
36*75f6d617Schristossource code.  And you must show them these terms so they know their
37*75f6d617Schristosrights.
38*75f6d617Schristos
39*75f6d617Schristos  We protect your rights with two steps: (1) copyright the software, and
40*75f6d617Schristos(2) offer you this license which gives you legal permission to copy,
41*75f6d617Schristosdistribute and/or modify the software.
42*75f6d617Schristos
43*75f6d617Schristos  Also, for each author's protection and ours, we want to make certain
44*75f6d617Schristosthat everyone understands that there is no warranty for this free
45*75f6d617Schristossoftware.  If the software is modified by someone else and passed on, we
46*75f6d617Schristoswant its recipients to know that what they have is not the original, so
47*75f6d617Schristosthat any problems introduced by others will not reflect on the original
48*75f6d617Schristosauthors' reputations.
49*75f6d617Schristos
50*75f6d617Schristos  Finally, any free program is threatened constantly by software
51*75f6d617Schristospatents.  We wish to avoid the danger that redistributors of a free
52*75f6d617Schristosprogram will individually obtain patent licenses, in effect making the
53*75f6d617Schristosprogram proprietary.  To prevent this, we have made it clear that any
54*75f6d617Schristospatent must be licensed for everyone's free use or not licensed at all.
55*75f6d617Schristos
56*75f6d617Schristos  The precise terms and conditions for copying, distribution and
57*75f6d617Schristosmodification follow.
58*75f6d617Schristos
59*75f6d617Schristos		    GNU GENERAL PUBLIC LICENSE
60*75f6d617Schristos   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61*75f6d617Schristos
62*75f6d617Schristos  0. This License applies to any program or other work which contains
63*75f6d617Schristosa notice placed by the copyright holder saying it may be distributed
64*75f6d617Schristosunder the terms of this General Public License.  The "Program", below,
65*75f6d617Schristosrefers to any such program or work, and a "work based on the Program"
66*75f6d617Schristosmeans either the Program or any derivative work under copyright law:
67*75f6d617Schristosthat is to say, a work containing the Program or a portion of it,
68*75f6d617Schristoseither verbatim or with modifications and/or translated into another
69*75f6d617Schristoslanguage.  (Hereinafter, translation is included without limitation in
70*75f6d617Schristosthe term "modification".)  Each licensee is addressed as "you".
71*75f6d617Schristos
72*75f6d617SchristosActivities other than copying, distribution and modification are not
73*75f6d617Schristoscovered by this License; they are outside its scope.  The act of
74*75f6d617Schristosrunning the Program is not restricted, and the output from the Program
75*75f6d617Schristosis covered only if its contents constitute a work based on the
76*75f6d617SchristosProgram (independent of having been made by running the Program).
77*75f6d617SchristosWhether that is true depends on what the Program does.
78*75f6d617Schristos
79*75f6d617Schristos  1. You may copy and distribute verbatim copies of the Program's
80*75f6d617Schristossource code as you receive it, in any medium, provided that you
81*75f6d617Schristosconspicuously and appropriately publish on each copy an appropriate
82*75f6d617Schristoscopyright notice and disclaimer of warranty; keep intact all the
83*75f6d617Schristosnotices that refer to this License and to the absence of any warranty;
84*75f6d617Schristosand give any other recipients of the Program a copy of this License
85*75f6d617Schristosalong with the Program.
86*75f6d617Schristos
87*75f6d617SchristosYou may charge a fee for the physical act of transferring a copy, and
88*75f6d617Schristosyou may at your option offer warranty protection in exchange for a fee.
89*75f6d617Schristos
90*75f6d617Schristos  2. You may modify your copy or copies of the Program or any portion
91*75f6d617Schristosof it, thus forming a work based on the Program, and copy and
92*75f6d617Schristosdistribute such modifications or work under the terms of Section 1
93*75f6d617Schristosabove, provided that you also meet all of these conditions:
94*75f6d617Schristos
95*75f6d617Schristos    a) You must cause the modified files to carry prominent notices
96*75f6d617Schristos    stating that you changed the files and the date of any change.
97*75f6d617Schristos
98*75f6d617Schristos    b) You must cause any work that you distribute or publish, that in
99*75f6d617Schristos    whole or in part contains or is derived from the Program or any
100*75f6d617Schristos    part thereof, to be licensed as a whole at no charge to all third
101*75f6d617Schristos    parties under the terms of this License.
102*75f6d617Schristos
103*75f6d617Schristos    c) If the modified program normally reads commands interactively
104*75f6d617Schristos    when run, you must cause it, when started running for such
105*75f6d617Schristos    interactive use in the most ordinary way, to print or display an
106*75f6d617Schristos    announcement including an appropriate copyright notice and a
107*75f6d617Schristos    notice that there is no warranty (or else, saying that you provide
108*75f6d617Schristos    a warranty) and that users may redistribute the program under
109*75f6d617Schristos    these conditions, and telling the user how to view a copy of this
110*75f6d617Schristos    License.  (Exception: if the Program itself is interactive but
111*75f6d617Schristos    does not normally print such an announcement, your work based on
112*75f6d617Schristos    the Program is not required to print an announcement.)
113*75f6d617Schristos
114*75f6d617SchristosThese requirements apply to the modified work as a whole.  If
115*75f6d617Schristosidentifiable sections of that work are not derived from the Program,
116*75f6d617Schristosand can be reasonably considered independent and separate works in
117*75f6d617Schristosthemselves, then this License, and its terms, do not apply to those
118*75f6d617Schristossections when you distribute them as separate works.  But when you
119*75f6d617Schristosdistribute the same sections as part of a whole which is a work based
120*75f6d617Schristoson the Program, the distribution of the whole must be on the terms of
121*75f6d617Schristosthis License, whose permissions for other licensees extend to the
122*75f6d617Schristosentire whole, and thus to each and every part regardless of who wrote it.
123*75f6d617Schristos
124*75f6d617SchristosThus, it is not the intent of this section to claim rights or contest
125*75f6d617Schristosyour rights to work written entirely by you; rather, the intent is to
126*75f6d617Schristosexercise the right to control the distribution of derivative or
127*75f6d617Schristoscollective works based on the Program.
128*75f6d617Schristos
129*75f6d617SchristosIn addition, mere aggregation of another work not based on the Program
130*75f6d617Schristoswith the Program (or with a work based on the Program) on a volume of
131*75f6d617Schristosa storage or distribution medium does not bring the other work under
132*75f6d617Schristosthe scope of this License.
133*75f6d617Schristos
134*75f6d617Schristos  3. You may copy and distribute the Program (or a work based on it,
135*75f6d617Schristosunder Section 2) in object code or executable form under the terms of
136*75f6d617SchristosSections 1 and 2 above provided that you also do one of the following:
137*75f6d617Schristos
138*75f6d617Schristos    a) Accompany it with the complete corresponding machine-readable
139*75f6d617Schristos    source code, which must be distributed under the terms of Sections
140*75f6d617Schristos    1 and 2 above on a medium customarily used for software interchange; or,
141*75f6d617Schristos
142*75f6d617Schristos    b) Accompany it with a written offer, valid for at least three
143*75f6d617Schristos    years, to give any third party, for a charge no more than your
144*75f6d617Schristos    cost of physically performing source distribution, a complete
145*75f6d617Schristos    machine-readable copy of the corresponding source code, to be
146*75f6d617Schristos    distributed under the terms of Sections 1 and 2 above on a medium
147*75f6d617Schristos    customarily used for software interchange; or,
148*75f6d617Schristos
149*75f6d617Schristos    c) Accompany it with the information you received as to the offer
150*75f6d617Schristos    to distribute corresponding source code.  (This alternative is
151*75f6d617Schristos    allowed only for noncommercial distribution and only if you
152*75f6d617Schristos    received the program in object code or executable form with such
153*75f6d617Schristos    an offer, in accord with Subsection b above.)
154*75f6d617Schristos
155*75f6d617SchristosThe source code for a work means the preferred form of the work for
156*75f6d617Schristosmaking modifications to it.  For an executable work, complete source
157*75f6d617Schristoscode means all the source code for all modules it contains, plus any
158*75f6d617Schristosassociated interface definition files, plus the scripts used to
159*75f6d617Schristoscontrol compilation and installation of the executable.  However, as a
160*75f6d617Schristosspecial exception, the source code distributed need not include
161*75f6d617Schristosanything that is normally distributed (in either source or binary
162*75f6d617Schristosform) with the major components (compiler, kernel, and so on) of the
163*75f6d617Schristosoperating system on which the executable runs, unless that component
164*75f6d617Schristositself accompanies the executable.
165*75f6d617Schristos
166*75f6d617SchristosIf distribution of executable or object code is made by offering
167*75f6d617Schristosaccess to copy from a designated place, then offering equivalent
168*75f6d617Schristosaccess to copy the source code from the same place counts as
169*75f6d617Schristosdistribution of the source code, even though third parties are not
170*75f6d617Schristoscompelled to copy the source along with the object code.
171*75f6d617Schristos
172*75f6d617Schristos  4. You may not copy, modify, sublicense, or distribute the Program
173*75f6d617Schristosexcept as expressly provided under this License.  Any attempt
174*75f6d617Schristosotherwise to copy, modify, sublicense or distribute the Program is
175*75f6d617Schristosvoid, and will automatically terminate your rights under this License.
176*75f6d617SchristosHowever, parties who have received copies, or rights, from you under
177*75f6d617Schristosthis License will not have their licenses terminated so long as such
178*75f6d617Schristosparties remain in full compliance.
179*75f6d617Schristos
180*75f6d617Schristos  5. You are not required to accept this License, since you have not
181*75f6d617Schristossigned it.  However, nothing else grants you permission to modify or
182*75f6d617Schristosdistribute the Program or its derivative works.  These actions are
183*75f6d617Schristosprohibited by law if you do not accept this License.  Therefore, by
184*75f6d617Schristosmodifying or distributing the Program (or any work based on the
185*75f6d617SchristosProgram), you indicate your acceptance of this License to do so, and
186*75f6d617Schristosall its terms and conditions for copying, distributing or modifying
187*75f6d617Schristosthe Program or works based on it.
188*75f6d617Schristos
189*75f6d617Schristos  6. Each time you redistribute the Program (or any work based on the
190*75f6d617SchristosProgram), the recipient automatically receives a license from the
191*75f6d617Schristosoriginal licensor to copy, distribute or modify the Program subject to
192*75f6d617Schristosthese terms and conditions.  You may not impose any further
193*75f6d617Schristosrestrictions on the recipients' exercise of the rights granted herein.
194*75f6d617SchristosYou are not responsible for enforcing compliance by third parties to
195*75f6d617Schristosthis License.
196*75f6d617Schristos
197*75f6d617Schristos  7. If, as a consequence of a court judgment or allegation of patent
198*75f6d617Schristosinfringement or for any other reason (not limited to patent issues),
199*75f6d617Schristosconditions are imposed on you (whether by court order, agreement or
200*75f6d617Schristosotherwise) that contradict the conditions of this License, they do not
201*75f6d617Schristosexcuse you from the conditions of this License.  If you cannot
202*75f6d617Schristosdistribute so as to satisfy simultaneously your obligations under this
203*75f6d617SchristosLicense and any other pertinent obligations, then as a consequence you
204*75f6d617Schristosmay not distribute the Program at all.  For example, if a patent
205*75f6d617Schristoslicense would not permit royalty-free redistribution of the Program by
206*75f6d617Schristosall those who receive copies directly or indirectly through you, then
207*75f6d617Schristosthe only way you could satisfy both it and this License would be to
208*75f6d617Schristosrefrain entirely from distribution of the Program.
209*75f6d617Schristos
210*75f6d617SchristosIf any portion of this section is held invalid or unenforceable under
211*75f6d617Schristosany particular circumstance, the balance of the section is intended to
212*75f6d617Schristosapply and the section as a whole is intended to apply in other
213*75f6d617Schristoscircumstances.
214*75f6d617Schristos
215*75f6d617SchristosIt is not the purpose of this section to induce you to infringe any
216*75f6d617Schristospatents or other property right claims or to contest validity of any
217*75f6d617Schristossuch claims; this section has the sole purpose of protecting the
218*75f6d617Schristosintegrity of the free software distribution system, which is
219*75f6d617Schristosimplemented by public license practices.  Many people have made
220*75f6d617Schristosgenerous contributions to the wide range of software distributed
221*75f6d617Schristosthrough that system in reliance on consistent application of that
222*75f6d617Schristossystem; it is up to the author/donor to decide if he or she is willing
223*75f6d617Schristosto distribute software through any other system and a licensee cannot
224*75f6d617Schristosimpose that choice.
225*75f6d617Schristos
226*75f6d617SchristosThis section is intended to make thoroughly clear what is believed to
227*75f6d617Schristosbe a consequence of the rest of this License.
228*75f6d617Schristos
229*75f6d617Schristos  8. If the distribution and/or use of the Program is restricted in
230*75f6d617Schristoscertain countries either by patents or by copyrighted interfaces, the
231*75f6d617Schristosoriginal copyright holder who places the Program under this License
232*75f6d617Schristosmay add an explicit geographical distribution limitation excluding
233*75f6d617Schristosthose countries, so that distribution is permitted only in or among
234*75f6d617Schristoscountries not thus excluded.  In such case, this License incorporates
235*75f6d617Schristosthe limitation as if written in the body of this License.
236*75f6d617Schristos
237*75f6d617Schristos  9. The Free Software Foundation may publish revised and/or new versions
238*75f6d617Schristosof the General Public License from time to time.  Such new versions will
239*75f6d617Schristosbe similar in spirit to the present version, but may differ in detail to
240*75f6d617Schristosaddress new problems or concerns.
241*75f6d617Schristos
242*75f6d617SchristosEach version is given a distinguishing version number.  If the Program
243*75f6d617Schristosspecifies a version number of this License which applies to it and "any
244*75f6d617Schristoslater version", you have the option of following the terms and conditions
245*75f6d617Schristoseither of that version or of any later version published by the Free
246*75f6d617SchristosSoftware Foundation.  If the Program does not specify a version number of
247*75f6d617Schristosthis License, you may choose any version ever published by the Free Software
248*75f6d617SchristosFoundation.
249*75f6d617Schristos
250*75f6d617Schristos  10. If you wish to incorporate parts of the Program into other free
251*75f6d617Schristosprograms whose distribution conditions are different, write to the author
252*75f6d617Schristosto ask for permission.  For software which is copyrighted by the Free
253*75f6d617SchristosSoftware Foundation, write to the Free Software Foundation; we sometimes
254*75f6d617Schristosmake exceptions for this.  Our decision will be guided by the two goals
255*75f6d617Schristosof preserving the free status of all derivatives of our free software and
256*75f6d617Schristosof promoting the sharing and reuse of software generally.
257*75f6d617Schristos
258*75f6d617Schristos			    NO WARRANTY
259*75f6d617Schristos
260*75f6d617Schristos  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261*75f6d617SchristosFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
262*75f6d617SchristosOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263*75f6d617SchristosPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264*75f6d617SchristosOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265*75f6d617SchristosMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
266*75f6d617SchristosTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
267*75f6d617SchristosPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268*75f6d617SchristosREPAIR OR CORRECTION.
269*75f6d617Schristos
270*75f6d617Schristos  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271*75f6d617SchristosWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272*75f6d617SchristosREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273*75f6d617SchristosINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274*75f6d617SchristosOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275*75f6d617SchristosTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276*75f6d617SchristosYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277*75f6d617SchristosPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278*75f6d617SchristosPOSSIBILITY OF SUCH DAMAGES.
279*75f6d617Schristos
280*75f6d617Schristos		     END OF TERMS AND CONDITIONS
281*75f6d617Schristos
282*75f6d617Schristos	    How to Apply These Terms to Your New Programs
283*75f6d617Schristos
284*75f6d617Schristos  If you develop a new program, and you want it to be of the greatest
285*75f6d617Schristospossible use to the public, the best way to achieve this is to make it
286*75f6d617Schristosfree software which everyone can redistribute and change under these terms.
287*75f6d617Schristos
288*75f6d617Schristos  To do so, attach the following notices to the program.  It is safest
289*75f6d617Schristosto attach them to the start of each source file to most effectively
290*75f6d617Schristosconvey the exclusion of warranty; and each file should have at least
291*75f6d617Schristosthe "copyright" line and a pointer to where the full notice is found.
292*75f6d617Schristos
293*75f6d617Schristos    <one line to give the program's name and a brief idea of what it does.>
294*75f6d617Schristos    Copyright (C) <year>  <name of author>
295*75f6d617Schristos
296*75f6d617Schristos    This program is free software; you can redistribute it and/or modify
297*75f6d617Schristos    it under the terms of the GNU General Public License as published by
298*75f6d617Schristos    the Free Software Foundation; either version 2 of the License, or
299*75f6d617Schristos    (at your option) any later version.
300*75f6d617Schristos
301*75f6d617Schristos    This program is distributed in the hope that it will be useful,
302*75f6d617Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
303*75f6d617Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
304*75f6d617Schristos    GNU General Public License for more details.
305*75f6d617Schristos
306*75f6d617Schristos    You should have received a copy of the GNU General Public License
307*75f6d617Schristos    along with this program; if not, write to the Free Software
308*75f6d617Schristos    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
309*75f6d617Schristos
310*75f6d617Schristos
311*75f6d617SchristosAlso add information on how to contact you by electronic and paper mail.
312*75f6d617Schristos
313*75f6d617SchristosIf the program is interactive, make it output a short notice like this
314*75f6d617Schristoswhen it starts in an interactive mode:
315*75f6d617Schristos
316*75f6d617Schristos    Gnomovision version 69, Copyright (C) year  name of author
317*75f6d617Schristos    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
318*75f6d617Schristos    This is free software, and you are welcome to redistribute it
319*75f6d617Schristos    under certain conditions; type `show c' for details.
320*75f6d617Schristos
321*75f6d617SchristosThe hypothetical commands `show w' and `show c' should show the appropriate
322*75f6d617Schristosparts of the General Public License.  Of course, the commands you use may
323*75f6d617Schristosbe called something other than `show w' and `show c'; they could even be
324*75f6d617Schristosmouse-clicks or menu items--whatever suits your program.
325*75f6d617Schristos
326*75f6d617SchristosYou should also get your employer (if you work as a programmer) or your
327*75f6d617Schristosschool, if any, to sign a "copyright disclaimer" for the program, if
328*75f6d617Schristosnecessary.  Here is a sample; alter the names:
329*75f6d617Schristos
330*75f6d617Schristos  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
331*75f6d617Schristos  `Gnomovision' (which makes passes at compilers) written by James Hacker.
332*75f6d617Schristos
333*75f6d617Schristos  <signature of Ty Coon>, 1 April 1989
334*75f6d617Schristos  Ty Coon, President of Vice
335*75f6d617Schristos
336*75f6d617SchristosThis General Public License does not permit incorporating your program into
337*75f6d617Schristosproprietary programs.  If your program is a subroutine library, you may
338*75f6d617Schristosconsider it more useful to permit linking proprietary applications with the
339*75f6d617Schristoslibrary.  If this is what you want to do, use the GNU Library General
340*75f6d617SchristosPublic License instead of this License.
341