| 1 | % \iffalse <meta-comment> |
| 2 | % |
| 3 | % $Id: gpl.tex,v 1.1 1999/05/05 19:23:47 mdw Exp $ |
| 4 | % |
| 5 | % The GNU General Public License as a LaTeX section |
| 6 | % |
| 7 | % (c) 1989, 1991 Free Software Foundation, Inc. |
| 8 | % LaTeX markup and minor formatting changes by Mark Wooding |
| 9 | % |
| 10 | |
| 11 | %----- Revision history ----------------------------------------------------- |
| 12 | % |
| 13 | % $Log: gpl.tex,v $ |
| 14 | % Revision 1.1 1999/05/05 19:23:47 mdw |
| 15 | % Initial revision |
| 16 | % |
| 17 | % --- Previous lives --- |
| 18 | % |
| 19 | % %Log: gpl.tex,v % |
| 20 | % Revision 1.3 1997/07/29 19:49:51 mdw |
| 21 | % Fix address of the FSF. |
| 22 | % |
| 23 | % Revision 1.2 1997/04/28 19:32:26 mdw |
| 24 | % Fix spelling of `License' so that it's American and wrong. |
| 25 | % Also use copyright symbol since I have one, and reformat the verbatim |
| 26 | % text a lttle. |
| 27 | % |
| 28 | % Revision 1.1 1996/11/19 20:51:14 mdw |
| 29 | % Initial revision |
| 30 | % |
| 31 | |
| 32 | % --- Chapter heading --- |
| 33 | % |
| 34 | % We don't know whether this ought to be a section or a chapter. Easy. |
| 35 | % We'll see if chapters are possible. |
| 36 | % |
| 37 | % \fi |
| 38 | |
| 39 | \begingroup |
| 40 | \makeatletter |
| 41 | |
| 42 | \edef\next#1#2#3{\relax |
| 43 | \ifx\chapter\@@undefined |
| 44 | \ifx\documentclass\@notprerr#2\else#3\fi |
| 45 | \else#1\fi |
| 46 | } |
| 47 | |
| 48 | \expandafter\endgroup\next |
| 49 | { |
| 50 | \let\gpltoplevel\chapter |
| 51 | \let\gplsec\section |
| 52 | \let\gplend\endinput |
| 53 | }{ |
| 54 | \let\gpltoplevel\section |
| 55 | \let\gplsec\subsection |
| 56 | \let\gplend\endinput |
| 57 | }{ |
| 58 | \documentclass[a4paper]{article} |
| 59 | \def\gpltoplevel#1{% |
| 60 | \vspace*{1in}% |
| 61 | \hbox to\hsize{\hfil\LARGE\bfseries#1\hfil}% |
| 62 | \vspace{1in}% |
| 63 | } |
| 64 | \let\gplsec\section |
| 65 | \def\gplend{\end{document}} |
| 66 | \advance\textwidth1in |
| 67 | \advance\oddsidemargin-.5in |
| 68 | \sloppy |
| 69 | \begin{document} |
| 70 | } |
| 71 | |
| 72 | %^^A------------------------------------------------------------------------- |
| 73 | \gpltoplevel{The GNU General Public License} |
| 74 | |
| 75 | |
| 76 | The following is the text of the GNU General Public License, under the terms |
| 77 | of which this software is distrubuted. |
| 78 | |
| 79 | \vspace{12pt} |
| 80 | |
| 81 | \begin{center} |
| 82 | \textbf{GNU GENERAL PUBLIC LICENSE} \\ |
| 83 | Version 2, June 1991 |
| 84 | \end{center} |
| 85 | |
| 86 | \begin{center} |
| 87 | Copyright \copyright\ 1989, 1991 Free Software Foundation, Inc. \\ |
| 88 | 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
| 89 | |
| 90 | Everyone is permitted to copy and distribute verbatim copies \\ |
| 91 | of this license document, but changing it is not allowed. |
| 92 | \end{center} |
| 93 | |
| 94 | |
| 95 | \gplsec{Preamble} |
| 96 | |
| 97 | The licenses for most software are designed to take away your freedom to |
| 98 | share and change it. By contrast, the GNU General Public License is intended |
| 99 | to guarantee your freedom to share and change free software---to make sure |
| 100 | the software is free for all its users. This General Public License applies |
| 101 | to most of the Free Software Foundation's software and to any other program |
| 102 | whose authors commit to using it. (Some other Free Software Foundation |
| 103 | software is covered by the GNU Library General Public License instead.) You |
| 104 | can apply it to your programs, too. |
| 105 | |
| 106 | When we speak of free software, we are referring to freedom, not price. Our |
| 107 | General Public Licenses are designed to make sure that you have the freedom |
| 108 | to distribute copies of free software (and charge for this service if you |
| 109 | wish), that you receive source code or can get it if you want it, that you |
| 110 | can change the software or use pieces of it in new free programs; and that |
| 111 | you know you can do these things. |
| 112 | |
| 113 | To protect your rights, we need to make restrictions that forbid anyone to |
| 114 | deny you these rights or to ask you to surrender the rights. These |
| 115 | restrictions translate to certain responsibilities for you if you distribute |
| 116 | copies of the software, or if you modify it. |
| 117 | |
| 118 | For example, if you distribute copies of such a program, whether gratis or |
| 119 | for a fee, you must give the recipients all the rights that you have. You |
| 120 | must make sure that they, too, receive or can get the source code. And you |
| 121 | must show them these terms so they know their rights. |
| 122 | |
| 123 | We protect your rights with two steps: (1) copyright the software, and (2) |
| 124 | offer you this license which gives you legal permission to copy, distribute |
| 125 | and/or modify the software. |
| 126 | |
| 127 | Also, for each author's protection and ours, we want to make certain that |
| 128 | everyone understands that there is no warranty for this free software. If |
| 129 | the software is modified by someone else and passed on, we want its |
| 130 | recipients to know that what they have is not the original, so that any |
| 131 | problems introduced by others will not reflect on the original authors' |
| 132 | reputations. |
| 133 | |
| 134 | Finally, any free program is threatened constantly by software patents. We |
| 135 | wish to avoid the danger that redistributors of a free program will |
| 136 | individually obtain patent licenses, in effect making the program |
| 137 | proprietary. To prevent this, we have made it clear that any patent must be |
| 138 | licensed for everyone's free use or not licensed at all. |
| 139 | |
| 140 | The precise terms and conditions for copying, distribution and modification |
| 141 | follow. |
| 142 | |
| 143 | |
| 144 | \gplsec{Terms and conditions for copying, distribution and modification} |
| 145 | |
| 146 | \begin{enumerate} |
| 147 | |
| 148 | \makeatletter \setcounter{\@listctr}{-1} \makeatother |
| 149 | |
| 150 | \item [0.] This License applies to any program or other work which contains a |
| 151 | notice placed by the copyright holder saying it may be distributed |
| 152 | under the terms of this General Public License. The ``Program'', |
| 153 | below, refers to any such program or work, and a ``work based on the |
| 154 | Program'' means either the Program or any derivative work under |
| 155 | copyright law: that is to say, a work containing the Program or a |
| 156 | portion of it, either verbatim or with modifications and/or translated |
| 157 | into another language. (Hereinafter, translation is included without |
| 158 | limitation in the term ``modification''.) Each licensee is addressed |
| 159 | as ``you''. |
| 160 | |
| 161 | Activities other than copying, distribution and modification are not |
| 162 | covered by this License; they are outside its scope. The act of |
| 163 | running the Program is not restricted, and the output from the Program |
| 164 | is covered only if its contents constitute a work based on the Program |
| 165 | (independent of having been made by running the Program). Whether that |
| 166 | is true depends on what the Program does. |
| 167 | |
| 168 | \item [1.] You may copy and distribute verbatim copies of the Program's |
| 169 | source code as you receive it, in any medium, provided that you |
| 170 | conspicuously and appropriately publish on each copy an appropriate |
| 171 | copyright notice and disclaimer of warranty; keep intact all the |
| 172 | notices that refer to this License and to the absence of any warranty; |
| 173 | and give any other recipients of the Program a copy of this License |
| 174 | along with the Program. |
| 175 | |
| 176 | You may charge a fee for the physical act of transferring a copy, and |
| 177 | you may at your option offer warranty protection in exchange for a fee. |
| 178 | |
| 179 | \item [2.] You may modify your copy or copies of the Program or any portion |
| 180 | of it, thus forming a work based on the Program, and copy and |
| 181 | distribute such modifications or work under the terms of Section 1 |
| 182 | above, provided that you also meet all of these conditions: |
| 183 | |
| 184 | \begin{enumerate} |
| 185 | |
| 186 | \item [(a)] You must cause the modified files to carry prominent |
| 187 | notices stating that you changed the files and the date of any |
| 188 | change. |
| 189 | |
| 190 | \item [(b)] You must cause any work that you distribute or publish, |
| 191 | that in whole or in part contains or is derived from the Program |
| 192 | or any part thereof, to be licensed as a whole at no charge to |
| 193 | all third parties under the terms of this License. |
| 194 | |
| 195 | \item [(c)] If the modified program normally reads commands |
| 196 | interactively when run, you must cause it, when started running |
| 197 | for such interactive use in the most ordinary way, to print or |
| 198 | display an announcement including an appropriate copyright notice |
| 199 | and a notice that there is no warranty (or else, saying that you |
| 200 | provide a warranty) and that users may redistribute the program |
| 201 | under these conditions, and telling the user how to view a copy |
| 202 | of this License. (Exception: if the Program itself is |
| 203 | interactive but does not normally print such an announcement, |
| 204 | your work based on the Program is not required to print an |
| 205 | announcement.) |
| 206 | |
| 207 | \end{enumerate} |
| 208 | |
| 209 | These requirements apply to the modified work as a whole. If |
| 210 | identifiable sections of that work are not derived from the Program, |
| 211 | and can be reasonably considered independent and separate works in |
| 212 | themselves, then this License, and its terms, do not apply to those |
| 213 | sections when you distribute them as separate works. But when you |
| 214 | distribute the same sections as part of a whole which is a work based |
| 215 | on the Program, the distribution of the whole must be on the terms of |
| 216 | this License, whose permissions for other licensees extend to the |
| 217 | entire whole, and thus to each and every part regardless of who wrote |
| 218 | it. |
| 219 | |
| 220 | Thus, it is not the intent of this section to claim rights or contest |
| 221 | your rights to work written entirely by you; rather, the intent is to |
| 222 | exercise the right to control the distribution of derivative or |
| 223 | collective works based on the Program. |
| 224 | |
| 225 | In addition, mere aggregation of another work not based on the Program |
| 226 | with the Program (or with a work based on the Program) on a volume of a |
| 227 | storage or distribution medium does not bring the other work under the |
| 228 | scope of this License. |
| 229 | |
| 230 | \item [3.] You may copy and distribute the Program (or a work based on it, |
| 231 | under Section 2) in object code or executable form under the terms of |
| 232 | Sections 1 and 2 above provided that you also do one of the following: |
| 233 | |
| 234 | \begin{enumerate} |
| 235 | |
| 236 | \item [(a)] Accompany it with the complete corresponding |
| 237 | machine-readable source code, which must be distributed under the |
| 238 | terms of Sections 1 and 2 above on a medium customarily used for |
| 239 | software interchange; or, |
| 240 | |
| 241 | \item [(b)] Accompany it with a written offer, valid for at least three |
| 242 | years, to give any third party, for a charge no more than your |
| 243 | cost of physically performing source distribution, a complete |
| 244 | machine-readable copy of the corresponding source code, to be |
| 245 | distributed under the terms of Sections 1 and 2 above on a medium |
| 246 | customarily used for software interchange; or, |
| 247 | |
| 248 | \item [(c)] Accompany it with the information you received as to the |
| 249 | offer to distribute corresponding source code. (This alternative |
| 250 | is allowed only for noncommercial distribution and only if you |
| 251 | received the program in object code or executable form with such |
| 252 | an offer, in accord with Subsection b above.) |
| 253 | |
| 254 | \end{enumerate} |
| 255 | |
| 256 | The source code for a work means the preferred form of the work for |
| 257 | making modifications to it. For an executable work, complete source |
| 258 | code means all the source code for all modules it contains, plus any |
| 259 | associated interface definition files, plus the scripts used to control |
| 260 | compilation and installation of the executable. However, as a special |
| 261 | exception, the source code distributed need not include anything that |
| 262 | is normally distributed (in either source or binary form) with the |
| 263 | major components (compiler, kernel, and so on) of the operating system |
| 264 | on which the executable runs, unless that component itself accompanies |
| 265 | the executable. |
| 266 | |
| 267 | If distribution of executable or object code is made by offering access |
| 268 | to copy from a designated place, then offering equivalent access to |
| 269 | copy the source code from the same place counts as distribution of the |
| 270 | source code, even though third parties are not compelled to copy the |
| 271 | source along with the object code. |
| 272 | |
| 273 | \item [4.] You may not copy, modify, sublicense, or distribute the Program |
| 274 | except as expressly provided under this License. Any attempt otherwise |
| 275 | to copy, modify, sublicense or distribute the Program is void, and will |
| 276 | automatically terminate your rights under this License. However, |
| 277 | parties who have received copies, or rights, from you under this |
| 278 | License will not have their licenses terminated so long as such parties |
| 279 | remain in full compliance. |
| 280 | |
| 281 | \item [5.] You are not required to accept this License, since you have not |
| 282 | signed it. However, nothing else grants you permission to modify or |
| 283 | distribute the Program or its derivative works. These actions are |
| 284 | prohibited by law if you do not accept this License. Therefore, by |
| 285 | modifying or distributing the Program (or any work based on the |
| 286 | Program), you indicate your acceptance of this License to do so, and |
| 287 | all its terms and conditions for copying, distributing or modifying the |
| 288 | Program or works based on it. |
| 289 | |
| 290 | \item [6.] Each time you redistribute the Program (or any work based on the |
| 291 | Program), the recipient automatically receives a license from the |
| 292 | original licensor to copy, distribute or modify the Program subject to |
| 293 | these terms and conditions. You may not impose any further |
| 294 | restrictions on the recipients' exercise of the rights granted herein. |
| 295 | You are not responsible for enforcing compliance by third parties to |
| 296 | this License. |
| 297 | |
| 298 | \item [7.] If, as a consequence of a court judgment or allegation of patent |
| 299 | infringement or for any other reason (not limited to patent issues), |
| 300 | conditions are imposed on you (whether by court order, agreement or |
| 301 | otherwise) that contradict the conditions of this License, they do not |
| 302 | excuse you from the conditions of this License. If you cannot |
| 303 | distribute so as to satisfy simultaneously your obligations under this |
| 304 | License and any other pertinent obligations, then as a consequence you |
| 305 | may not distribute the Program at all. For example, if a patent |
| 306 | license would not permit royalty-free redistribution of the Program by |
| 307 | all those who receive copies directly or indirectly through you, then |
| 308 | the only way you could satisfy both it and this License would be to |
| 309 | refrain entirely from distribution of the Program. |
| 310 | |
| 311 | If any portion of this section is held invalid or unenforceable under |
| 312 | any particular circumstance, the balance of the section is intended to |
| 313 | apply and the section as a whole is intended to apply in other |
| 314 | circumstances. |
| 315 | |
| 316 | It is not the purpose of this section to induce you to infringe any |
| 317 | patents or other property right claims or to contest validity of any |
| 318 | such claims; this section has the sole purpose of protecting the |
| 319 | integrity of the free software distribution system, which is |
| 320 | implemented by public license practices. Many people have made |
| 321 | generous contributions to the wide range of software distributed |
| 322 | through that system in reliance on consistent application of that |
| 323 | system; it is up to the author/donor to decide if he or she is willing |
| 324 | to distribute software through any other system and a licensee cannot |
| 325 | impose that choice. |
| 326 | |
| 327 | This section is intended to make thoroughly clear what is believed to |
| 328 | be a consequence of the rest of this License. |
| 329 | |
| 330 | \item [8.] If the distribution and/or use of the Program is restricted in |
| 331 | certain countries either by patents or by copyrighted interfaces, the |
| 332 | original copyright holder who places the Program under this License may |
| 333 | add an explicit geographical distribution limitation excluding those |
| 334 | countries, so that distribution is permitted only in or among countries |
| 335 | not thus excluded. In such case, this License incorporates the |
| 336 | limitation as if written in the body of this License. |
| 337 | |
| 338 | \item [9.] The Free Software Foundation may publish revised and/or new |
| 339 | versions of the General Public License from time to time. Such new |
| 340 | versions will be similar in spirit to the present version, but may |
| 341 | differ in detail to address new problems or concerns. |
| 342 | |
| 343 | Each version is given a distinguishing version number. If the Program |
| 344 | specifies a version number of this License which applies to it and |
| 345 | ``any later version'', you have the option of following the terms and |
| 346 | conditions either of that version or of any later version published by |
| 347 | the Free Software Foundation. If the Program does not specify a |
| 348 | version number of this License, you may choose any version ever |
| 349 | published by the Free Software Foundation. |
| 350 | |
| 351 | \item [10.] If you wish to incorporate parts of the Program into other free |
| 352 | programs whose distribution conditions are different, write to the |
| 353 | author to ask for permission. For software which is copyrighted by the |
| 354 | Free Software Foundation, write to the Free Software Foundation; we |
| 355 | sometimes make exceptions for this. Our decision will be guided by the |
| 356 | two goals of preserving the free status of all derivatives of our free |
| 357 | software and of promoting the sharing and reuse of software generally. |
| 358 | |
| 359 | \begin{center} |
| 360 | NO WARRANTY |
| 361 | \end{center} |
| 362 | |
| 363 | \bfseries |
| 364 | |
| 365 | \item [11.] Because the Program is licensed free of charge, there is no |
| 366 | warranty for the Program, to the extent permitted by applicable law. |
| 367 | except when otherwise stated in writing the copyright holders and/or |
| 368 | other parties provide the program ``as is'' without warranty of any |
| 369 | kind, either expressed or implied, including, but not limited to, the |
| 370 | implied warranties of merchantability and fitness for a particular |
| 371 | purpose. The entire risk as to the quality and performance of the |
| 372 | Program is with you. Should the Program prove defective, you assume |
| 373 | the cost of all necessary servicing, repair or correction. |
| 374 | |
| 375 | \item [12.] In no event unless required by applicable law or agreed to in |
| 376 | writing will any copyright holder, or any other party who may modify |
| 377 | and/or redistribute the program as permitted above, be liable to you |
| 378 | for damages, including any general, special, incidental or |
| 379 | consequential damages arising out of the use or inability to use the |
| 380 | program (including but not limited to loss of data or data being |
| 381 | rendered inaccurate or losses sustained by you or third parties or a |
| 382 | failure of the Program to operate with any other programs), even if |
| 383 | such holder or other party has been advised of the possibility of such |
| 384 | damages. |
| 385 | |
| 386 | \end{enumerate} |
| 387 | |
| 388 | \begin{center} |
| 389 | \textbf{END OF TERMS AND CONDITIONS} |
| 390 | \end{center} |
| 391 | |
| 392 | |
| 393 | \gplsec{Appendix: How to Apply These Terms to Your New Programs} |
| 394 | |
| 395 | If you develop a new program, and you want it to be of the greatest possible |
| 396 | use to the public, the best way to achieve this is to make it free software |
| 397 | which everyone can redistribute and change under these terms. |
| 398 | |
| 399 | To do so, attach the following notices to the program. It is safest to |
| 400 | attach them to the start of each source file to most effectively convey the |
| 401 | exclusion of warranty; and each file should have at least the ``copyright'' |
| 402 | line and a pointer to where the full notice is found. |
| 403 | |
| 404 | \begin{verbatim} |
| 405 | <one line to give the program's name and a brief idea of what it does.> |
| 406 | Copyright (C) 19yy <name of author> |
| 407 | |
| 408 | This program is free software; you can redistribute it and/or modify |
| 409 | it under the terms of the GNU General Public License as published by |
| 410 | the Free Software Foundation; either version 2 of the License, or |
| 411 | (at your option) any later version. |
| 412 | |
| 413 | This program is distributed in the hope that it will be useful, |
| 414 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 415 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 416 | GNU General Public License for more details. |
| 417 | |
| 418 | You should have received a copy of the GNU General Public License |
| 419 | along with this program; if not, write to the Free Software Foundation, |
| 420 | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 421 | \end{verbatim} |
| 422 | |
| 423 | Also add information on how to contact you by electronic and paper mail. |
| 424 | |
| 425 | If the program is interactive, make it output a short notice like this when |
| 426 | it starts in an interactive mode: |
| 427 | |
| 428 | \begin{verbatim} |
| 429 | Gnomovision version 69, Copyright (C) 19yy name of author |
| 430 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type |
| 431 | `show w'. |
| 432 | This is free software, and you are welcome to redistribute it |
| 433 | under certain conditions; type `show c' for details. |
| 434 | \end{verbatim} |
| 435 | |
| 436 | The hypothetical commands `show w' and `show c' should show the appropriate |
| 437 | parts of the General Public License. Of course, the commands you use may be |
| 438 | called something other than `show w' and `show c'; they could even be |
| 439 | mouse-clicks or menu items--whatever suits your program. |
| 440 | |
| 441 | You should also get your employer (if you work as a programmer) or your |
| 442 | school, if any, to sign a ``copyright disclaimer'' for the program, if |
| 443 | necessary. Here is a sample; alter the names: |
| 444 | |
| 445 | \begin{verbatim} |
| 446 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program |
| 447 | `Gnomovision' (which makes passes at compilers) written by James Hacker. |
| 448 | |
| 449 | <signature of Ty Coon>, 1 April 1989 |
| 450 | Ty Coon, President of Vice |
| 451 | \end{verbatim} |
| 452 | |
| 453 | This General Public License does not permit incorporating your program into |
| 454 | proprietary programs. If your program is a subroutine library, you may |
| 455 | consider it more useful to permit linking proprietary applications with the |
| 456 | library. If this is what you want to do, use the GNU Library General Public |
| 457 | License instead of this License. |
| 458 | |
| 459 | \gplend |