File: changelog.pl

package info (click to toggle)
imagemagick 8%3A7.1.1.43%2Bdfsg1-1%2Bdeb13u3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 96,160 kB
  • sloc: ansic: 370,601; cpp: 22,835; xml: 11,549; perl: 6,280; sh: 6,203; makefile: 3,484; tcl: 459
file content (34 lines) | stat: -rwxr-xr-x 562 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/perl
# Copyyright imagemagick LCC
# under imagemagick license

print "<h1>ImageMagick Changelog</h1>\n";
print "<dl>";
while (<>)
{
  chomp();
  s/\&(?!amp;)/\&amp;/g;
  s/</\&lt;/g;
  s/>/\&gt;/g;
  if (/^[^ ]/)
    {
      print "<dt>$_</dt>\n  <dd>";
      $_=<>;
      chomp();
      s/^ *\*//;
      s/\&(?!(?:amp|lt|gt);)/\&amp;/g;
      s/</\&lt;/g;
      s/>/\&gt;/g;
      print;
      next;
    }
  if (/^$/)
    {
      print "</dd>\n";
      next;
    }
  print "</dd>\n  <dd>" if /^ *\*/;
  s/^ *\*//;
  print "$_";
}
print "</dd></dl>";