diff-lcs 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/bin/ldiff CHANGED
@@ -1,45 +1,6 @@
1
- #!/usr/bin/env ruby
2
- #--
3
- # Copyright 2004 Austin Ziegler <diff-lcs@halostatue.ca>
4
- # adapted from:
5
- # Algorithm::Diff (Perl) by Ned Konz <perl@bike-nomad.com>
6
- # Smalltalk by Mario I. Wolczko <mario@wolczko.com>
7
- # implements McIlroy-Hunt diff algorithm
8
- #
9
- # This program is free software. It may be redistributed and/or modified under
10
- # the terms of the GPL version 2 (or later), the Perl Artistic licence, or the
11
- # Ruby licence.
12
- #
13
- # $Id: ldiff,v 1.6 2004/09/26 01:35:57 austin Exp $
14
- #++
15
-
16
- # 1) Try to load Ruwiki from the gem.
17
- # 2) Try to load Ruwiki from $LOAD_PATH.
18
- # 3) Modify $LOAD_PATH and try to load it from the modified $LOAD_PATH.
19
- # 4) Fail hard.
20
- load_state = 1
21
- begin
22
- if 1 == load_state
23
- require 'rubygems'
24
- require_gem 'diff-lcs', '= 1.1.1'
25
- else
26
- require 'diff/lcs'
27
- end
28
- rescue LoadError
29
- load_state += 1
30
-
31
- case load_state
32
- when 3
33
- $LOAD_PATH.unshift "#{File.dirname($0)}/../lib"
34
- when 4
35
- $LOAD_PATH.shift
36
- $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
37
- when 5
38
- raise
39
- end
40
- retry
41
- end
1
+ #!ruby -w
42
2
 
3
+ require 'diff/lcs'
43
4
  require 'diff/lcs/ldiff'
44
5
 
45
6
  exit Diff::LCS::Ldiff.run(ARGV)
@@ -0,0 +1,51 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{diff-lcs}
5
+ s.version = "1.1.3"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Austin Ziegler"]
9
+ s.date = %q{2011-08-27}
10
+ s.description = %q{Diff::LCS is a port of Perl's Algorithm::Diff that uses the McIlroy-Hunt
11
+ longest common subsequence (LCS) algorithm to compute intelligent differences
12
+ between two sequenced enumerable containers. The implementation is based on
13
+ Mario I. Wolczko's {Smalltalk version 1.2}[ftp://st.cs.uiuc.edu/pub/Smalltalk/MANCHESTER/manchester/4.0/diff.st]
14
+ (1993) and Ned Konz's Perl version
15
+ {Algorithm::Diff 1.15}[http://search.cpan.org/~nedkonz/Algorithm-Diff-1.15/].
16
+
17
+ This is release 1.1.3, fixing several small bugs found over the years. Version
18
+ 1.1.0 added new features, including the ability to #patch and #unpatch changes
19
+ as well as a new contextual diff callback, Diff::LCS::ContextDiffCallbacks,
20
+ that should improve the context sensitivity of patching.
21
+
22
+ This library is called Diff::LCS because of an early version of Algorithm::Diff
23
+ which was restrictively licensed. This version has seen a minor license change:
24
+ instead of being under Ruby's license as an option, the third optional license
25
+ is the MIT license.}
26
+ s.email = ["austin@rubyforge.org"]
27
+ s.executables = ["htmldiff", "ldiff"]
28
+ s.extra_rdoc_files = ["Manifest.txt", "docs/COPYING.txt", "History.rdoc", "License.rdoc", "README.rdoc"]
29
+ s.files = ["History.rdoc", "License.rdoc", "Manifest.txt", "README.rdoc", "Rakefile", "bin/htmldiff", "bin/ldiff", "diff-lcs.gemspec", "docs/COPYING.txt", "docs/artistic.html", "lib/diff-lcs.rb", "lib/diff/lcs.rb", "lib/diff/lcs/array.rb", "lib/diff/lcs/block.rb", "lib/diff/lcs/callbacks.rb", "lib/diff/lcs/change.rb", "lib/diff/lcs/htmldiff.rb", "lib/diff/lcs/hunk.rb", "lib/diff/lcs/ldiff.rb", "lib/diff/lcs/string.rb", "spec/diff_spec.rb", "spec/lcs_spec.rb", "spec/patch_spec.rb", "spec/sdiff_spec.rb", "spec/spec_helper.rb", "spec/traverse_balanced_spec.rb", "spec/traverse_sequences_spec.rb", ".gemtest"]
30
+ s.rdoc_options = ["--main", "README.rdoc"]
31
+ s.require_paths = ["lib"]
32
+ s.rubyforge_project = %q{ruwiki}
33
+ s.rubygems_version = %q{1.3.6}
34
+ s.summary = %q{Diff::LCS is a port of Perl's Algorithm::Diff that uses the McIlroy-Hunt longest common subsequence (LCS) algorithm to compute intelligent differences between two sequenced enumerable containers}
35
+
36
+ if s.respond_to? :specification_version then
37
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
38
+ s.specification_version = 3
39
+
40
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
41
+ s.add_development_dependency(%q<rspec>, ["~> 2.0"])
42
+ s.add_development_dependency(%q<hoe>, ["~> 2.10"])
43
+ else
44
+ s.add_dependency(%q<rspec>, ["~> 2.0"])
45
+ s.add_dependency(%q<hoe>, ["~> 2.10"])
46
+ end
47
+ else
48
+ s.add_dependency(%q<rspec>, ["~> 2.0"])
49
+ s.add_dependency(%q<hoe>, ["~> 2.10"])
50
+ end
51
+ end
@@ -0,0 +1,340 @@
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 2, June 1991
3
+
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+ Preamble
10
+
11
+ The licenses for most software are designed to take away your
12
+ freedom to share and change it. By contrast, the GNU General Public
13
+ License is intended to guarantee your freedom to share and change free
14
+ software--to make sure the software is free for all its users. This
15
+ General Public License applies to most of the Free Software
16
+ Foundation's software and to any other program whose authors commit to
17
+ using it. (Some other Free Software Foundation software is covered by
18
+ the GNU Library General Public License instead.) You can apply it to
19
+ your programs, too.
20
+
21
+ When we speak of free software, we are referring to freedom, not
22
+ price. Our General Public Licenses are designed to make sure that you
23
+ have the freedom to distribute copies of free software (and charge for
24
+ this service if you wish), that you receive source code or can get it
25
+ if you want it, that you can change the software or use pieces of it
26
+ in new free programs; and that you know you can do these things.
27
+
28
+ To protect your rights, we need to make restrictions that forbid
29
+ anyone to deny you these rights or to ask you to surrender the rights.
30
+ These restrictions translate to certain responsibilities for you if you
31
+ distribute copies of the software, or if you modify it.
32
+
33
+ For example, if you distribute copies of such a program, whether
34
+ gratis or for a fee, you must give the recipients all the rights that
35
+ you have. You must make sure that they, too, receive or can get the
36
+ source code. And you must show them these terms so they know their
37
+ rights.
38
+
39
+ We protect your rights with two steps: (1) copyright the software, and
40
+ (2) offer you this license which gives you legal permission to copy,
41
+ distribute and/or modify the software.
42
+
43
+ Also, for each author's protection and ours, we want to make certain
44
+ that everyone understands that there is no warranty for this free
45
+ software. If the software is modified by someone else and passed on, we
46
+ want its recipients to know that what they have is not the original, so
47
+ that any problems introduced by others will not reflect on the original
48
+ authors' reputations.
49
+
50
+ Finally, any free program is threatened constantly by software
51
+ patents. We wish to avoid the danger that redistributors of a free
52
+ program will individually obtain patent licenses, in effect making the
53
+ program proprietary. To prevent this, we have made it clear that any
54
+ patent must be licensed for everyone's free use or not licensed at all.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ GNU GENERAL PUBLIC LICENSE
60
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
+
62
+ 0. This License applies to any program or other work which contains
63
+ a notice placed by the copyright holder saying it may be distributed
64
+ under the terms of this General Public License. The "Program", below,
65
+ refers to any such program or work, and a "work based on the Program"
66
+ means either the Program or any derivative work under copyright law:
67
+ that is to say, a work containing the Program or a portion of it,
68
+ either verbatim or with modifications and/or translated into another
69
+ language. (Hereinafter, translation is included without limitation in
70
+ the term "modification".) Each licensee is addressed as "you".
71
+
72
+ Activities other than copying, distribution and modification are not
73
+ covered by this License; they are outside its scope. The act of
74
+ running the Program is not restricted, and the output from the Program
75
+ is covered only if its contents constitute a work based on the
76
+ Program (independent of having been made by running the Program).
77
+ Whether that is true depends on what the Program does.
78
+
79
+ 1. You may copy and distribute verbatim copies of the Program's
80
+ source code as you receive it, in any medium, provided that you
81
+ conspicuously and appropriately publish on each copy an appropriate
82
+ copyright notice and disclaimer of warranty; keep intact all the
83
+ notices that refer to this License and to the absence of any warranty;
84
+ and give any other recipients of the Program a copy of this License
85
+ along with the Program.
86
+
87
+ You may charge a fee for the physical act of transferring a copy, and
88
+ you may at your option offer warranty protection in exchange for a fee.
89
+
90
+ 2. You may modify your copy or copies of the Program or any portion
91
+ of it, thus forming a work based on the Program, and copy and
92
+ distribute such modifications or work under the terms of Section 1
93
+ above, provided that you also meet all of these conditions:
94
+
95
+ a) You must cause the modified files to carry prominent notices
96
+ stating that you changed the files and the date of any change.
97
+
98
+ b) You must cause any work that you distribute or publish, that in
99
+ whole or in part contains or is derived from the Program or any
100
+ part thereof, to be licensed as a whole at no charge to all third
101
+ parties under the terms of this License.
102
+
103
+ c) If the modified program normally reads commands interactively
104
+ when run, you must cause it, when started running for such
105
+ interactive use in the most ordinary way, to print or display an
106
+ announcement including an appropriate copyright notice and a
107
+ notice that there is no warranty (or else, saying that you provide
108
+ a warranty) and that users may redistribute the program under
109
+ these conditions, and telling the user how to view a copy of this
110
+ License. (Exception: if the Program itself is interactive but
111
+ does not normally print such an announcement, your work based on
112
+ the Program is not required to print an announcement.)
113
+
114
+ These requirements apply to the modified work as a whole. If
115
+ identifiable sections of that work are not derived from the Program,
116
+ and can be reasonably considered independent and separate works in
117
+ themselves, then this License, and its terms, do not apply to those
118
+ sections when you distribute them as separate works. But when you
119
+ distribute the same sections as part of a whole which is a work based
120
+ on the Program, the distribution of the whole must be on the terms of
121
+ this License, whose permissions for other licensees extend to the
122
+ entire whole, and thus to each and every part regardless of who wrote it.
123
+
124
+ Thus, it is not the intent of this section to claim rights or contest
125
+ your rights to work written entirely by you; rather, the intent is to
126
+ exercise the right to control the distribution of derivative or
127
+ collective works based on the Program.
128
+
129
+ In addition, mere aggregation of another work not based on the Program
130
+ with the Program (or with a work based on the Program) on a volume of
131
+ a storage or distribution medium does not bring the other work under
132
+ the scope of this License.
133
+
134
+ 3. You may copy and distribute the Program (or a work based on it,
135
+ under Section 2) in object code or executable form under the terms of
136
+ Sections 1 and 2 above provided that you also do one of the following:
137
+
138
+ a) Accompany it with the complete corresponding machine-readable
139
+ source code, which must be distributed under the terms of Sections
140
+ 1 and 2 above on a medium customarily used for software interchange; or,
141
+
142
+ b) Accompany it with a written offer, valid for at least three
143
+ years, to give any third party, for a charge no more than your
144
+ cost of physically performing source distribution, a complete
145
+ machine-readable copy of the corresponding source code, to be
146
+ distributed under the terms of Sections 1 and 2 above on a medium
147
+ customarily used for software interchange; or,
148
+
149
+ c) Accompany it with the information you received as to the offer
150
+ to distribute corresponding source code. (This alternative is
151
+ allowed only for noncommercial distribution and only if you
152
+ received the program in object code or executable form with such
153
+ an offer, in accord with Subsection b above.)
154
+
155
+ The source code for a work means the preferred form of the work for
156
+ making modifications to it. For an executable work, complete source
157
+ code means all the source code for all modules it contains, plus any
158
+ associated interface definition files, plus the scripts used to
159
+ control compilation and installation of the executable. However, as a
160
+ special exception, the source code distributed need not include
161
+ anything that is normally distributed (in either source or binary
162
+ form) with the major components (compiler, kernel, and so on) of the
163
+ operating system on which the executable runs, unless that component
164
+ itself accompanies the executable.
165
+
166
+ If distribution of executable or object code is made by offering
167
+ access to copy from a designated place, then offering equivalent
168
+ access to copy the source code from the same place counts as
169
+ distribution of the source code, even though third parties are not
170
+ compelled to copy the source along with the object code.
171
+
172
+ 4. You may not copy, modify, sublicense, or distribute the Program
173
+ except as expressly provided under this License. Any attempt
174
+ otherwise to copy, modify, sublicense or distribute the Program is
175
+ void, and will automatically terminate your rights under this License.
176
+ However, parties who have received copies, or rights, from you under
177
+ this License will not have their licenses terminated so long as such
178
+ parties remain in full compliance.
179
+
180
+ 5. You are not required to accept this License, since you have not
181
+ signed it. However, nothing else grants you permission to modify or
182
+ distribute the Program or its derivative works. These actions are
183
+ prohibited by law if you do not accept this License. Therefore, by
184
+ modifying or distributing the Program (or any work based on the
185
+ Program), you indicate your acceptance of this License to do so, and
186
+ all its terms and conditions for copying, distributing or modifying
187
+ the Program or works based on it.
188
+
189
+ 6. Each time you redistribute the Program (or any work based on the
190
+ Program), the recipient automatically receives a license from the
191
+ original licensor to copy, distribute or modify the Program subject to
192
+ these terms and conditions. You may not impose any further
193
+ restrictions on the recipients' exercise of the rights granted herein.
194
+ You are not responsible for enforcing compliance by third parties to
195
+ this License.
196
+
197
+ 7. If, as a consequence of a court judgment or allegation of patent
198
+ infringement or for any other reason (not limited to patent issues),
199
+ conditions are imposed on you (whether by court order, agreement or
200
+ otherwise) that contradict the conditions of this License, they do not
201
+ excuse you from the conditions of this License. If you cannot
202
+ distribute so as to satisfy simultaneously your obligations under this
203
+ License and any other pertinent obligations, then as a consequence you
204
+ may not distribute the Program at all. For example, if a patent
205
+ license would not permit royalty-free redistribution of the Program by
206
+ all those who receive copies directly or indirectly through you, then
207
+ the only way you could satisfy both it and this License would be to
208
+ refrain entirely from distribution of the Program.
209
+
210
+ If any portion of this section is held invalid or unenforceable under
211
+ any particular circumstance, the balance of the section is intended to
212
+ apply and the section as a whole is intended to apply in other
213
+ circumstances.
214
+
215
+ It is not the purpose of this section to induce you to infringe any
216
+ patents or other property right claims or to contest validity of any
217
+ such claims; this section has the sole purpose of protecting the
218
+ integrity of the free software distribution system, which is
219
+ implemented by public license practices. Many people have made
220
+ generous contributions to the wide range of software distributed
221
+ through that system in reliance on consistent application of that
222
+ system; it is up to the author/donor to decide if he or she is willing
223
+ to distribute software through any other system and a licensee cannot
224
+ impose that choice.
225
+
226
+ This section is intended to make thoroughly clear what is believed to
227
+ be a consequence of the rest of this License.
228
+
229
+ 8. If the distribution and/or use of the Program is restricted in
230
+ certain countries either by patents or by copyrighted interfaces, the
231
+ original copyright holder who places the Program under this License
232
+ may add an explicit geographical distribution limitation excluding
233
+ those countries, so that distribution is permitted only in or among
234
+ countries not thus excluded. In such case, this License incorporates
235
+ the limitation as if written in the body of this License.
236
+
237
+ 9. The Free Software Foundation may publish revised and/or new versions
238
+ of the General Public License from time to time. Such new versions will
239
+ be similar in spirit to the present version, but may differ in detail to
240
+ address new problems or concerns.
241
+
242
+ Each version is given a distinguishing version number. If the Program
243
+ specifies a version number of this License which applies to it and "any
244
+ later version", you have the option of following the terms and conditions
245
+ either of that version or of any later version published by the Free
246
+ Software Foundation. If the Program does not specify a version number of
247
+ this License, you may choose any version ever published by the Free Software
248
+ Foundation.
249
+
250
+ 10. If you wish to incorporate parts of the Program into other free
251
+ programs whose distribution conditions are different, write to the author
252
+ to ask for permission. For software which is copyrighted by the Free
253
+ Software Foundation, write to the Free Software Foundation; we sometimes
254
+ make exceptions for this. Our decision will be guided by the two goals
255
+ of preserving the free status of all derivatives of our free software and
256
+ of promoting the sharing and reuse of software generally.
257
+
258
+ NO WARRANTY
259
+
260
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
+ REPAIR OR CORRECTION.
269
+
270
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
+ POSSIBILITY OF SUCH DAMAGES.
279
+
280
+ END OF TERMS AND CONDITIONS
281
+
282
+ How to Apply These Terms to Your New Programs
283
+
284
+ If you develop a new program, and you want it to be of the greatest
285
+ possible use to the public, the best way to achieve this is to make it
286
+ free software which everyone can redistribute and change under these terms.
287
+
288
+ To do so, attach the following notices to the program. It is safest
289
+ to attach them to the start of each source file to most effectively
290
+ convey the exclusion of warranty; and each file should have at least
291
+ the "copyright" line and a pointer to where the full notice is found.
292
+
293
+ <one line to give the program's name and a brief idea of what it does.>
294
+ Copyright (C) 19yy <name of author>
295
+
296
+ This program is free software; you can redistribute it and/or modify
297
+ it under the terms of the GNU General Public License as published by
298
+ the Free Software Foundation; either version 2 of the License, or
299
+ (at your option) any later version.
300
+
301
+ This program is distributed in the hope that it will be useful,
302
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
303
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304
+ GNU General Public License for more details.
305
+
306
+ You should have received a copy of the GNU General Public License
307
+ along with this program; if not, write to the Free Software
308
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
309
+
310
+
311
+ Also add information on how to contact you by electronic and paper mail.
312
+
313
+ If the program is interactive, make it output a short notice like this
314
+ when it starts in an interactive mode:
315
+
316
+ Gnomovision version 69, Copyright (C) 19yy name of author
317
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
318
+ This is free software, and you are welcome to redistribute it
319
+ under certain conditions; type `show c' for details.
320
+
321
+ The hypothetical commands `show w' and `show c' should show the appropriate
322
+ parts of the General Public License. Of course, the commands you use may
323
+ be called something other than `show w' and `show c'; they could even be
324
+ mouse-clicks or menu items--whatever suits your program.
325
+
326
+ You should also get your employer (if you work as a programmer) or your
327
+ school, if any, to sign a "copyright disclaimer" for the program, if
328
+ necessary. Here is a sample; alter the names:
329
+
330
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
331
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
332
+
333
+ <signature of Ty Coon>, 1 April 1989
334
+ Ty Coon, President of Vice
335
+
336
+ This General Public License does not permit incorporating your program into
337
+ proprietary programs. If your program is a subroutine library, you may
338
+ consider it more useful to permit linking proprietary applications with the
339
+ library. If this is what you want to do, use the GNU Library General
340
+ Public License instead of this License.
@@ -0,0 +1,289 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <title>The "Artistic License" - dev.perl.org</title>
6
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7
+
8
+
9
+ <link rel="stylesheet" type="text/css" href="http://cdn.pimg.net/css/leostyle.vffcd481.css">
10
+ <link rel="stylesheet" type="text/css" href="http://cdn.pimg.net/css/dev.v5f7fab3.css">
11
+
12
+
13
+ <link rel="shortcut icon" href="http://cdn.pimg.net/favicon.v249dfa7.ico">
14
+
15
+
16
+
17
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>
18
+ <script src="http://cdn.pimg.net/js/jquery.corner.v84b7681.js" type="text/javascript" charset="utf-8"></script>
19
+ <script src="http://cdn.pimg.net/js/leo.v9872b9c.js" type="text/javascript" charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body>
23
+
24
+ <div id="header_holder">
25
+ <div class="sub_holder">
26
+ <div id="page_image"></div>
27
+ <h1>
28
+ The "Artistic License"
29
+ </h1>
30
+ <div id="logo_holder">
31
+
32
+
33
+
34
+ <a href="/"><img src="http://cdn.pimg.net/images/camel_head.v25e738a.png" id="logo" alt="Perl programming" height="65" align="right" /></a>
35
+
36
+
37
+ <span>dev.perl.org</span>
38
+
39
+ </div>
40
+ </div>
41
+ </div>
42
+
43
+ <div id="nav">
44
+ <div class="sub_holder">
45
+ <ul>
46
+ <li>
47
+ <a href="/">Home</a>
48
+ </li>
49
+ <li class="">
50
+ <a href="/perl5/">Perl 5</a>
51
+ </li>
52
+ <li class="">
53
+ <a href="/perl6/">Perl 6</a>
54
+ </li>
55
+
56
+ </ul>
57
+
58
+ </div>
59
+ </div>
60
+
61
+ <div id="crum_holder">
62
+ <div id="crum" class="sub_holder">
63
+ &nbsp;
64
+ </div>
65
+ </div>
66
+
67
+ <div id="content_holder">
68
+ <div id="content" class="sub_holder">
69
+ <div id="main">
70
+
71
+ <PRE>
72
+
73
+ <A style="float:right"
74
+ HREF="http://www.opensource.org/licenses/artistic-license.php"
75
+ ><IMG BORDER=0 SRC="osi-certified-90x75.gif"
76
+ ></A>
77
+
78
+ The "Artistic License"
79
+
80
+ Preamble
81
+
82
+ The intent of this document is to state the conditions under which a
83
+ Package may be copied, such that the Copyright Holder maintains some
84
+ semblance of artistic control over the development of the package,
85
+ while giving the users of the package the right to use and distribute
86
+ the Package in a more-or-less customary fashion, plus the right to make
87
+ reasonable modifications.
88
+
89
+ Definitions:
90
+
91
+ "Package" refers to the collection of files distributed by the
92
+ Copyright Holder, and derivatives of that collection of files
93
+ created through textual modification.
94
+
95
+ "Standard Version" refers to such a Package if it has not been
96
+ modified, or has been modified in accordance with the wishes
97
+ of the Copyright Holder as specified below.
98
+
99
+ "Copyright Holder" is whoever is named in the copyright or
100
+ copyrights for the package.
101
+
102
+ "You" is you, if you're thinking about copying or distributing
103
+ this Package.
104
+
105
+ "Reasonable copying fee" is whatever you can justify on the
106
+ basis of media cost, duplication charges, time of people involved,
107
+ and so on. (You will not be required to justify it to the
108
+ Copyright Holder, but only to the computing community at large
109
+ as a market that must bear the fee.)
110
+
111
+ "Freely Available" means that no fee is charged for the item
112
+ itself, though there may be fees involved in handling the item.
113
+ It also means that recipients of the item may redistribute it
114
+ under the same conditions they received it.
115
+
116
+ 1. You may make and give away verbatim copies of the source form of the
117
+ Standard Version of this Package without restriction, provided that you
118
+ duplicate all of the original copyright notices and associated disclaimers.
119
+
120
+ 2. You may apply bug fixes, portability fixes and other modifications
121
+ derived from the Public Domain or from the Copyright Holder. A Package
122
+ modified in such a way shall still be considered the Standard Version.
123
+
124
+ 3. You may otherwise modify your copy of this Package in any way, provided
125
+ that you insert a prominent notice in each changed file stating how and
126
+ when you changed that file, and provided that you do at least ONE of the
127
+ following:
128
+
129
+ a) place your modifications in the Public Domain or otherwise make them
130
+ Freely Available, such as by posting said modifications to Usenet or
131
+ an equivalent medium, or placing the modifications on a major archive
132
+ site such as uunet.uu.net, or by allowing the Copyright Holder to include
133
+ your modifications in the Standard Version of the Package.
134
+
135
+ b) use the modified Package only within your corporation or organization.
136
+
137
+ c) rename any non-standard executables so the names do not conflict
138
+ with standard executables, which must also be provided, and provide
139
+ a separate manual page for each non-standard executable that clearly
140
+ documents how it differs from the Standard Version.
141
+
142
+ d) make other distribution arrangements with the Copyright Holder.
143
+
144
+ 4. You may distribute the programs of this Package in object code or
145
+ executable form, provided that you do at least ONE of the following:
146
+
147
+ a) distribute a Standard Version of the executables and library files,
148
+ together with instructions (in the manual page or equivalent) on where
149
+ to get the Standard Version.
150
+
151
+ b) accompany the distribution with the machine-readable source of
152
+ the Package with your modifications.
153
+
154
+ c) give non-standard executables non-standard names, and clearly
155
+ document the differences in manual pages (or equivalent), together
156
+ with instructions on where to get the Standard Version.
157
+
158
+ d) make other distribution arrangements with the Copyright Holder.
159
+
160
+ 5. You may charge a reasonable copying fee for any distribution of this
161
+ Package. You may charge any fee you choose for support of this
162
+ Package. You may not charge a fee for this Package itself. However,
163
+ you may distribute this Package in aggregate with other (possibly
164
+ commercial) programs as part of a larger (possibly commercial) software
165
+ distribution provided that you do not advertise this Package as a
166
+ product of your own. You may embed this Package's interpreter within
167
+ an executable of yours (by linking); this shall be construed as a mere
168
+ form of aggregation, provided that the complete Standard Version of the
169
+ interpreter is so embedded.
170
+
171
+ 6. The scripts and library files supplied as input to or produced as
172
+ output from the programs of this Package do not automatically fall
173
+ under the copyright of this Package, but belong to whoever generated
174
+ them, and may be sold commercially, and may be aggregated with this
175
+ Package. If such scripts or library files are aggregated with this
176
+ Package via the so-called "undump" or "unexec" methods of producing a
177
+ binary executable image, then distribution of such an image shall
178
+ neither be construed as a distribution of this Package nor shall it
179
+ fall under the restrictions of Paragraphs 3 and 4, provided that you do
180
+ not represent such an executable image as a Standard Version of this
181
+ Package.
182
+
183
+ 7. C subroutines (or comparably compiled subroutines in other
184
+ languages) supplied by you and linked into this Package in order to
185
+ emulate subroutines and variables of the language defined by this
186
+ Package shall not be considered part of this Package, but are the
187
+ equivalent of input as in Paragraph 6, provided these subroutines do
188
+ not change the language in any way that would cause it to fail the
189
+ regression tests for the language.
190
+
191
+ 8. Aggregation of this Package with a commercial distribution is always
192
+ permitted provided that the use of this Package is embedded; that is,
193
+ when no overt attempt is made to make this Package's interfaces visible
194
+ to the end user of the commercial distribution. Such use shall not be
195
+ construed as a distribution of this Package.
196
+
197
+ 9. The name of the Copyright Holder may not be used to endorse or promote
198
+ products derived from this software without specific prior written permission.
199
+
200
+ 10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
201
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
202
+ WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
203
+
204
+ The End
205
+ </PRE>
206
+
207
+ </div>
208
+ <div id="short_lists" class="short_lists">
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+ <div id="spacer_for_google"></div>
219
+
220
+ </div>
221
+ </div>
222
+ </div>
223
+ <div style="clear:both"></div>
224
+
225
+ <div id="footer">
226
+ <div class="sub_holder">
227
+
228
+
229
+ <p class="sites">
230
+ &nbsp;When you need <em>Perl</em> think <strong>Perl.org</strong>: <a href="http://www.perl.org/">www</a> | <a href="http://blogs.perl.org/">blogs</a> | <a href="http://jobs.perl.org/">jobs</a> | <a href="http://learn.perl.org/">learn</a> <!-- | <a href="http://lists.perl.org/">lists</a> --> | <a href="http://dev.perl.org/">dev</a>
231
+ </p>
232
+ <p class="copyright">
233
+ <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/us/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-nd/3.0/us/80x15.png"></a> © 2002-2011 Perl.org | <a href="/siteinfo.html">Site Info</a>
234
+ </p>
235
+
236
+
237
+
238
+
239
+ <div style="clear:both"></div>
240
+ <div id="google_translate_element"></div><script type="text/javascript">
241
+ function googleTranslateElementInit() {
242
+ new google.translate.TranslateElement({
243
+ pageLanguage: 'en',
244
+ autoDisplay: false
245
+ ,
246
+ gaTrack: true,
247
+ gaId: 'UA-50555-6'
248
+ }, 'google_translate_element');
249
+ }
250
+ </script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" type="text/javascript">
251
+ </script>
252
+ </div>
253
+ </div>
254
+
255
+
256
+ <!--[if lt IE 7]>
257
+ <div style='border: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: relative; margin-top: 2em;'>
258
+ <div style='position: absolute; right: 3px; top: 3px; font-family: courier new; font-weight: bold;'><a href='#' onclick='javascript:this.parentNode.parentNode.style.display="none"; return false;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-cornerx.jpg' style='border: none;' alt='Close this notice'/></a></div>
259
+ <div style='width: 640px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;'>
260
+ <div style='width: 75px; float: left;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-warning.jpg' alt='Warning!'/></div>
261
+ <div style='width: 275px; float: left; font-family: Arial, sans-serif;'>
262
+ <div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>You are using an outdated browser</div>
263
+ <div style='font-size: 12px; margin-top: 6px; line-height: 12px;'>For a better experience using this site, please upgrade to a modern web browser.</div>
264
+ </div>
265
+ <div style='width: 75px; float: left;'><a href='http://www.firefox.com' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-firefox.jpg' style='border: none;' alt='Get Firefox 3.5'/></a></div>
266
+ <div style='width: 75px; float: left;'><a href='http://www.browserforthebetter.com/download.html' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-ie8.jpg' style='border: none;' alt='Get Internet Explorer 8'/></a></div>
267
+ <div style='width: 73px; float: left;'><a href='http://www.apple.com/safari/download/' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-safari.jpg' style='border: none;' alt='Get Safari 4'/></a></div>
268
+ <div style='float: left;'><a href='http://www.google.com/chrome' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-chrome.jpg' style='border: none;' alt='Get Google Chrome'/></a></div>
269
+ </div>
270
+ </div>
271
+ <![endif]-->
272
+
273
+
274
+ <script type="text/javascript">
275
+ var _gaq = _gaq || [];
276
+ _gaq.push(['_setAccount', 'UA-50555-6']);
277
+ _gaq.push(['_trackPageview']);
278
+ (function() {
279
+ var ga = document.createElement('script');
280
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
281
+ 'http://www') + '.google-analytics.com/ga.js';
282
+ ga.setAttribute('async', 'true');
283
+ document.documentElement.firstChild.appendChild(ga);
284
+ })();
285
+ </script>
286
+ </body>
287
+ </html>
288
+
289
+