Permalink
Switch branches/tags
unified-annotation-indexer prototype-1.7 prototype-1.5.1.1 jenkins-1.475 jenkins-1.474 jenkins-1.473 jenkins-1.472 jenkins-1.471 jenkins-1.470 jenkins-1.469 jenkins-1.468 jenkins-1.467 jenkins-1.466.1 jenkins-1.466.1-rc1 jenkins-1.466 jenkins-1.465 jenkins-1.464 jenkins-1.463 jenkins-1.462 jenkins-1.461 jenkins-1.460 jenkins-1.459 jenkins-1.458 jenkins-1.457 jenkins-1.456 jenkins-1.455 jenkins-1.454 jenkins-1.453 jenkins-1.452 jenkins-1.451 jenkins-1.450 jenkins-1.449 jenkins-1.448 jenkins-1.447.2 jenkins-1.447.1 jenkins-1.447.1-rc1 jenkins-1.447 jenkins-1.446 jenkins-1.445 jenkins-1.444 jenkins-1.443 jenkins-1.442 jenkins-1.441 jenkins-1.440 jenkins-1.439 jenkins-1.438 jenkins-1.437 jenkins-1.436 jenkins-1.435 jenkins-1.434 jenkins-1.433 jenkins-1.432 jenkins-1.431 jenkins-1.430 jenkins-1.429 jenkins-1.428 jenkins-1.427 jenkins-1.426 jenkins-1.425 jenkins-1.424.6 jenkins-1.424.5 jenkins-1.424.4 jenkins-1.424.3 jenkins-1.424.3-rc2 jenkins-1.424.2 jenkins-1.424.2-rc3 jenkins-1.424.2-rc2 jenkins-1.424.2-rc1 jenkins-1.424.1 jenkins-1.424.1-rc3 jenkins-1.424.1-rc2 jenkins-1.424.1-rc1 jenkins-1.424 jenkins-1.424-rc2 jenkins-1.423 jenkins-1.422 jenkins-1.421 jenkins-1.420 jenkins-1.419 jenkins-1.418 jenkins-1.417 jenkins-1.416 jenkins-1_415 jenkins-1_414 jenkins-1_413 jenkins-1_412 jenkins-1_411 jenkins-1_410 jenkins-1.409.3 jenkins-1.409.2 jenkins-1.409.2-rc jenkins-1.409.1 jenkins-1.409.1-rc1 jenkins-1_409 jenkins-1_408 jenkins-1_407 jenkins-1_406 jenkins-1_405 jenkins-1_404 jenkins-1_403
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (51 sloc) 1.7 KB
#!/usr/bin/ruby
# The MIT License
#
# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
# Moves the changelog from the trunk section to the release section
# Usage: rc.changelog.rb < changelog.html > output.html
changelog = []
inside = false;
ARGF.each do |line|
if /=TRUNK-BEGIN=/ =~ line
inside = true;
puts line
# new template
puts "<ul class=image>"
puts " <li class=>"
puts "</ul>"
next
end
if /=TRUNK-END=/ =~ line
inside = false;
puts line
next
end
if inside
changelog << line
next
end
if /=RC-CHANGES=/ =~ line
changelog.each { |line| puts line }
next
end
puts line
end