You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.4KB

  1. #!/usr/bin/perl
  2. ##
  3. ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
  4. ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
  5. ##
  6. ## This program is distributed under the terms and conditions of the GNU
  7. ## General Public License Version 2 as published by the Free Software
  8. ## Foundation or, at your option, any later version.
  9. use strict;
  10. use warnings;
  11. use lib '.';
  12. do 'bin/make.pl';
  13. #---------------------------------------------------------------------------------------
  14. my @extlist = ();
  15. my %extensions = ();
  16. my $group = "";
  17. my $cur_group = "";
  18. if (@ARGV)
  19. {
  20. @extlist = @ARGV;
  21. my $n = 1;
  22. print "<table border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" align=\"center\">\n";
  23. foreach my $ext (sort @extlist)
  24. {
  25. my ($extname, $exturl, $extstring, $reuse, $types, $tokens, $functions, $exacts) = parse_ext($ext);
  26. $cur_group = $extname;
  27. $cur_group =~ s/^(?:W?)GL(?:X?)_([A-Z0-9]+?)_.*$/$1/;
  28. $extname =~ s/^(?:W?)GL(?:X?)_(.*)$/$1/;
  29. if ($cur_group ne $group)
  30. {
  31. if ($group ne "")
  32. {
  33. print "<tr><td><br></td><td></td><td></td></tr>\n";
  34. }
  35. $group = $cur_group;
  36. }
  37. {
  38. if ($exturl)
  39. {
  40. print "<tr><td class=\"num\">$n</td><td>&nbsp;</td><td><a href=\"$exturl\">$extname</a></td></tr>\n";
  41. }
  42. else
  43. {
  44. print "<tr><td class=\"num\">$n</td><td>&nbsp;</td><td>$extname</td></tr>\n";
  45. }
  46. $n++;
  47. }
  48. }
  49. print "</table>\n"
  50. }